|
105 | 105 | //| :param bool auto_brightness: If True, brightness is controlled via an ambient light sensor or other mechanism.
|
106 | 106 | //| :param bool single_byte_bounds: Display column and row commands use single bytes
|
107 | 107 | //| :param bool data_as_commands: Treat all init and boundary data as SPI commands. Certain displays require this.
|
| 108 | +//| :param bool column_and_page_addressing: Special quirk for SH1107, use upper/lower column set and page set |
108 | 109 | //| :param bool auto_refresh: Automatically refresh the screen
|
109 | 110 | //| :param int native_frames_per_second: Number of display refreshes per second that occur with the given init_sequence.
|
110 | 111 | //| :param bool backlight_on_high: If True, pulling the backlight pin high turns the backlight on."""
|
@@ -139,6 +140,7 @@ STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_a
|
139 | 140 | { MP_QSTR_auto_refresh, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = true} },
|
140 | 141 | { MP_QSTR_native_frames_per_second, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 60} },
|
141 | 142 | { MP_QSTR_backlight_on_high, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = true} },
|
| 143 | + { MP_QSTR_column_and_page_addressing, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = false} }, |
142 | 144 | };
|
143 | 145 | mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
|
144 | 146 | mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
|
@@ -180,7 +182,8 @@ STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_a
|
180 | 182 | args[ARG_data_as_commands].u_bool,
|
181 | 183 | args[ARG_auto_refresh].u_bool,
|
182 | 184 | args[ARG_native_frames_per_second].u_int,
|
183 |
| - args[ARG_backlight_on_high].u_bool |
| 185 | + args[ARG_backlight_on_high].u_bool, |
| 186 | + args[ARG_column_and_page_addressing].u_bool |
184 | 187 | );
|
185 | 188 |
|
186 | 189 | return self;
|
|
0 commit comments