add the possibility to #define USE_SH1107 to fix boards to this display.

This commit is contained in:
Thomas Göttgens
2023-01-20 15:04:09 +01:00
parent 74ec5e8a5c
commit 50f72b0ea0
2 changed files with 6 additions and 5 deletions
+4
View File
@@ -305,6 +305,10 @@ void setup()
if (config.display.oled != Config_DisplayConfig_OledType_OLED_AUTO)
screen_model = config.display.oled;
#if defined(USE_SH1107)
screen_model = Config_DisplayConfig_OledType_OLED_SH1107; // set dimension of 128x128
#endif
// Init our SPI controller (must be before screen and lora)
initSPI();
#ifndef ARCH_ESP32