Skip to content

Commit 030d5fe

Browse files
committed
Ignore SH1107 quirk if not 1bpp
1 parent bf0e1fa commit 030d5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/displayio/Display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t *self,
7474
self->first_manual_refresh = !auto_refresh;
7575
self->data_as_commands = data_as_commands;
7676
self->backlight_on_high = backlight_on_high;
77-
self->SH1107_addressing = SH1107_addressing;
77+
self->SH1107_addressing = SH1107_addressing && color_depth == 1;
7878

7979
self->native_frames_per_second = native_frames_per_second;
8080
self->native_ms_per_frame = 1000 / native_frames_per_second;

0 commit comments

Comments
 (0)