summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/ssd1306.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/driver/ssd1306.cc b/src/driver/ssd1306.cc
index 23b938d..cf36c13 100644
--- a/src/driver/ssd1306.cc
+++ b/src/driver/ssd1306.cc
@@ -20,6 +20,7 @@ void SSD1306::init()
for (i = 0; i < sizeof(init1); i++) {
writeCommand(init1[i]);
}
+ // set multiplex ratio (i.e., number of rows)
writeCommand(height - 1);
for (i = 0; i < sizeof(init2); i++) {
writeCommand(init2[i]);