Skip to content

Commit 19dbff6

Browse files
committed
Fixed page set mask to be four bits!
1 parent 06a3d15 commit 19dbff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/displayio/display_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void displayio_display_core_set_region_to_update(displayio_display_core_t* self,
261261
// Page address command = 0xB0
262262
if (SH1107_addressing) {
263263
// set the page to our x value
264-
data[0] = 0xB0 | (x1 & 0x07);
264+
data[0] = 0xB0 | (x1 & 0x0F);
265265
data_length = 1;
266266
}
267267
self->send(self->bus, data_type, chip_select, data, data_length);

0 commit comments

Comments
 (0)