From 2cf17fa143cb56565b4ee04ab77abe688030e8eb Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Thu, 18 Feb 2021 21:17:54 +0000 Subject: [PATCH] Handle display types correctly --- LCD_OLED.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LCD_OLED.h b/LCD_OLED.h index 2a99aea..52807ab 100644 --- a/LCD_OLED.h +++ b/LCD_OLED.h @@ -40,10 +40,10 @@ SSD1306AsciiWire LCDDriver; const DevType *devType; if (lcdCols == 132) devType = &SH1106_128x64; // Actually 132x64 but treated as 128x64 - else if (lcdCols == 128 && lcdRows == 8) - devType = &Adafruit128x64; - else + else if (lcdCols == 128 && lcdRows == 4) devType = &Adafruit128x32; + else + devType = &Adafruit128x64; LCDDriver.begin(devType, address); lcdDisplay=this; LCDDriver.setFont(System5x7); // Normal 1:1 pixel scale, 8 bits high