Merge pull request #1353 from meshtastic/patch-1

Add second scancode for SH1106
This commit is contained in:
Thomas Göttgens 2022-04-04 09:12:09 +02:00 committed by GitHub
commit 6c2d45d866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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