Fix native epd boards
This commit is contained in:
parent
d5b747b305
commit
b16037859c
@ -106,7 +106,8 @@ void board_init(void) {
|
||||
false, // chip_select (don't always toggle chip select)
|
||||
false, // grayscale
|
||||
false, // acep
|
||||
false); // two_byte_sequence_length
|
||||
false, // two_byte_sequence_length
|
||||
false); // address_little_endian
|
||||
}
|
||||
|
||||
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
|
||||
|
@ -167,7 +167,8 @@ void board_init(void) {
|
||||
false, // always_toggle_chip_select
|
||||
true, // grayscale
|
||||
false, // acep
|
||||
false); // two_byte_sequence_length
|
||||
false, // two_byte_sequence_length
|
||||
false); // address_little_endian
|
||||
}
|
||||
|
||||
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
|
||||
|
@ -323,7 +323,8 @@ void board_init(void) {
|
||||
false, // always_toggle_chip_select
|
||||
false, // grayscale
|
||||
false, // acep
|
||||
false); // two_byte_sequence_length
|
||||
false, // two_byte_sequence_length
|
||||
false); // address_little_endian
|
||||
}
|
||||
|
||||
void board_deinit(void) {
|
||||
|
@ -154,8 +154,8 @@ void common_hal_displayio_release_displays(void) {
|
||||
common_hal_videocore_framebuffer_deinit(&display_buses[i].videocore);
|
||||
#endif
|
||||
#if CIRCUITPY_PICODVI
|
||||
} else if (displays[i].bus_base.type == &picodvi_framebuffer_type) {
|
||||
common_hal_picodvi_framebuffer_deinit(&displays[i].picodvi);
|
||||
} else if (bus_type == &picodvi_framebuffer_type) {
|
||||
common_hal_picodvi_framebuffer_deinit(&display_buses[i].picodvi);
|
||||
#endif
|
||||
}
|
||||
display_buses[i].bus_base.type = &mp_type_NoneType;
|
||||
@ -274,8 +274,8 @@ void reset_displays(void) {
|
||||
// need to be moved.
|
||||
#endif
|
||||
#if CIRCUITPY_PICODVI
|
||||
} else if (displays[i].bus_base.type == &picodvi_framebuffer_type) {
|
||||
picodvi_framebuffer_obj_t *vc = &displays[i].picodvi;
|
||||
} else if (display_bus_type == &picodvi_framebuffer_type) {
|
||||
picodvi_framebuffer_obj_t *vc = &display_buses[i].picodvi;
|
||||
if (!any_display_uses_this_framebuffer(&vc->base)) {
|
||||
common_hal_picodvi_framebuffer_deinit(vc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user