Enable CS toggle for displayio by default
This commit is contained in:
parent
d2a0ec28a0
commit
0c33f7fdb4
@ -94,7 +94,7 @@ void board_init(void) {
|
||||
display_init_sequence,
|
||||
sizeof(display_init_sequence),
|
||||
&pin_PA00,
|
||||
false);
|
||||
true);
|
||||
common_hal_displayio_display_set_auto_brightness(display, true);
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ void board_init(void) {
|
||||
display_init_sequence,
|
||||
sizeof(display_init_sequence),
|
||||
&pin_PA00,
|
||||
false);
|
||||
true);
|
||||
common_hal_displayio_display_set_auto_brightness(display, true);
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@ void board_init(void) {
|
||||
display_init_sequence,
|
||||
sizeof(display_init_sequence),
|
||||
&pin_PB31,
|
||||
false);
|
||||
true);
|
||||
common_hal_displayio_display_set_auto_brightness(display, true);
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_a
|
||||
{ MP_QSTR_write_ram_command, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0x2c} },
|
||||
{ MP_QSTR_set_vertical_scroll, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0x0} },
|
||||
{ MP_QSTR_backlight_pin, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_obj = mp_const_none} },
|
||||
{ MP_QSTR_init_cs_toggle, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = false} },
|
||||
{ MP_QSTR_init_cs_toggle, MP_ARG_BOOL | MP_ARG_KW_ONLY, {.u_bool = true} },
|
||||
};
|
||||
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
|
||||
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
|
||||
|
Loading…
Reference in New Issue
Block a user