Skip to content

Commit 7f68ee5

Browse files
helmut64marcelstoer
authored andcommitted
Fixed an offset problem in the single buffer case
PAGEADDR 0 resets the value, no ending page address is allowed This overcomes the around warpping problem
1 parent 81138e2 commit 7f68ee5

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/SSD1306I2C.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class SSD1306I2C : public OLEDDisplay {
117117

118118
sendCommand(PAGEADDR);
119119
sendCommand(0x0); // page start address (0 = reset)
120-
sendCommand((this->height() / 8) - 1); // page end address 7
121120

122121
if (geometry == GEOMETRY_128_64) {
123122
sendCommand(0x7);

src/SSD1306Wire.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ class SSD1306Wire : public OLEDDisplay {
128128

129129
sendCommand(PAGEADDR);
130130
sendCommand(0x0);
131-
sendCommand((this->height() / 8) - 1);
132131

133132
if (geometry == GEOMETRY_128_64) {
134133
sendCommand(0x7);

0 commit comments

Comments
 (0)