Fix native epd boards

This commit is contained in:
Scott Shawcroft 2023-04-21 14:36:35 -07:00
parent d5b747b305
commit b16037859c
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
4 changed files with 10 additions and 7 deletions

View File

@ -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.

View File

@ -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) {

View File

@ -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) {

View File

@ -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);
}