From 92d32f722d5853de153900b54ae2d7b771564aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Mon, 4 Apr 2022 08:51:29 +0200 Subject: [PATCH] Add second scancode for SH1106 This display is found on the Nano G1 --- src/debug/i2cScan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/i2cScan.h b/src/debug/i2cScan.h index a99fa4508..7bb5eadd5 100644 --- a/src/debug/i2cScan.h +++ b/src/debug/i2cScan.h @@ -15,7 +15,7 @@ uint8_t oled_probe(byte addr) r = Wire.read(); } r &= 0x0f; - if (r == 0x08) { + if (r == 0x08 || r == 0x00) { o_probe = 2; // SH1106 } else if ( r == 0x03 || r == 0x06 || r == 0x07) { o_probe = 1; // SSD1306