summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorMark Roberts <mdroberts1243@gmail.com>2020-09-25 00:26:39 -0400
committerMark Roberts <mdroberts1243@gmail.com>2020-09-25 00:26:39 -0400
commit19dbff67f2a4921ccbe06fdf29e229225e8aed2d (patch)
tree86f71101cf03907db235b55d88c8108b73d3a3bb /shared-module
parent06a3d152664a97cc0a2f2faee86d2f5ea4e063e2 (diff)
Fixed page set mask to be four bits!
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/displayio/display_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/displayio/display_core.c b/shared-module/displayio/display_core.c
index 4e36e4dd1..6e05b4757 100644
--- a/shared-module/displayio/display_core.c
+++ b/shared-module/displayio/display_core.c
@@ -261,7 +261,7 @@ void displayio_display_core_set_region_to_update(displayio_display_core_t* self,
// Page address command = 0xB0
if (SH1107_addressing) {
// set the page to our x value
- data[0] = 0xB0 | (x1 & 0x07);
+ data[0] = 0xB0 | (x1 & 0x0F);
data_length = 1;
}
self->send(self->bus, data_type, chip_select, data, data_length);