Ignore SH1107 quirk if not 1bpp

This commit is contained in:
Jeff Epler 2022-05-03 09:23:36 -05:00
parent bf0e1fafa9
commit 030d5fefa0
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t *self,
self->first_manual_refresh = !auto_refresh;
self->data_as_commands = data_as_commands;
self->backlight_on_high = backlight_on_high;
self->SH1107_addressing = SH1107_addressing;
self->SH1107_addressing = SH1107_addressing && color_depth == 1;
self->native_frames_per_second = native_frames_per_second;
self->native_ms_per_frame = 1000 / native_frames_per_second;