summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/display/ssd1306.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/display/ssd1306.py b/drivers/display/ssd1306.py
index 4893b2045..6359c85ea 100644
--- a/drivers/display/ssd1306.py
+++ b/drivers/display/ssd1306.py
@@ -50,7 +50,7 @@ class SSD1306(framebuf.FrameBuffer):
SET_DISP_OFFSET,
0x00,
SET_COM_PIN_CFG,
- 0x02 if self.height == 32 else 0x12,
+ 0x02 if self.width > 2 * self.height else 0x12,
# timing and driving scheme
SET_DISP_CLK_DIV,
0x80,