We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd2ce40 commit 80800eeCopy full SHA for 80800ee
src/components/display/hardware.cpp
@@ -362,6 +362,11 @@ bool DisplayHardware::beginOled(
362
strcmp(i2c_config->i2c.i2c_device_name, "SSD1306") == 0) {
363
_drvDisp = new dispDrvSsd1306(WS._i2cPort0->getBus(),
364
i2c_config->i2c.i2c_device_address);
365
+ } else if (strnlen(i2c_config->i2c.i2c_device_name,
366
+ sizeof(i2c_config->i2c.i2c_device_name)) <
367
+ sizeof(i2c_config->i2c.i2c_device_name) &&
368
+ strcmp(i2c_config->i2c.i2c_device_name, "SH1107") == 0) {
369
+ _drvDisp = new dispDrvSh1107(WS._i2cPort0->getBus(), i2c_config->i2c.i2c_device_address);
370
} else {
371
WS_DEBUG_PRINTLN("[display] Unsupported OLED driver!");
372
return false;
0 commit comments