Add RAK1921 OLED Probe Code (#1339)

This commit is contained in:
Thomas Göttgens 2022-03-30 22:36:16 +02:00 committed by GitHub
parent 9586a2e932
commit 0e3ac246b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ uint8_t oled_probe(byte addr)
r &= 0x0f;
if (r == 0x08) {
o_probe = 2; // SH1106
} else if ( r == 0x06 || r == 0x07) {
} else if ( r == 0x03 || r == 0x06 || r == 0x07) {
o_probe = 1; // SSD1306
}
DEBUG_MSG("0x%x subtype probed\n", r);
@ -77,4 +77,4 @@ void scanI2Cdevice(void)
}
#else
void scanI2Cdevice(void) {}
#endif
#endif