summaryrefslogtreecommitdiff
path: root/include/driver
diff options
context:
space:
mode:
Diffstat (limited to 'include/driver')
-rw-r--r--include/driver/ssd1306.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver/ssd1306.h b/include/driver/ssd1306.h
index 5b17561..d5d3a58 100644
--- a/include/driver/ssd1306.h
+++ b/include/driver/ssd1306.h
@@ -163,7 +163,7 @@ class SSD1306 {
SSD1306_SET_COL_ADDR, 0, 127,
// reset page pointer
- SSD1306_SET_PAGE_ADDR, 0, 7
+ SSD1306_SET_PAGE_ADDR, 0, height/8-1
};
void writeCommand(uint8_t command);