summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-04-11 18:54:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-04-11 18:54:45 +0200
commitaa84611c14c7553824379bec12793fa209f65460 (patch)
tree673449cc003495af731125bb73eb6170f5834cbb /src
parent040109e17b511253b2e3d8d92c67698a3d45ac18 (diff)
ssd1306: Comment initialization sequence
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]);