Fixed page set mask to be four bits!

This commit is contained in:
Mark Roberts 2020-09-25 00:26:39 -04:00
parent 06a3d15266
commit 19dbff67f2

View File

@ -261,7 +261,7 @@ void displayio_display_core_set_region_to_update(displayio_display_core_t* self,
// Page address command = 0xB0 // Page address command = 0xB0
if (SH1107_addressing) { if (SH1107_addressing) {
// set the page to our x value // set the page to our x value
data[0] = 0xB0 | (x1 & 0x07); data[0] = 0xB0 | (x1 & 0x0F);
data_length = 1; data_length = 1;
} }
self->send(self->bus, data_type, chip_select, data, data_length); self->send(self->bus, data_type, chip_select, data, data_length);