Skip to content

Commit b160378

Browse files
committed
Fix native epd boards
1 parent d5b747b commit b160378

File tree

4 files changed

+10
-7
lines changed
  • ports
    • atmel-samd/boards/openbook_m4
    • espressif/boards/adafruit_magtag_2.9_grayscale
    • raspberrypi/boards/pimoroni_badger2040
  • shared-module/displayio

4 files changed

+10
-7
lines changed

ports/atmel-samd/boards/openbook_m4/board.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ void board_init(void) {
106106
false, // chip_select (don't always toggle chip select)
107107
false, // grayscale
108108
false, // acep
109-
false); // two_byte_sequence_length
109+
false, // two_byte_sequence_length
110+
false); // address_little_endian
110111
}
111112

112113
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

ports/espressif/boards/adafruit_magtag_2.9_grayscale/board.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ void board_init(void) {
167167
false, // always_toggle_chip_select
168168
true, // grayscale
169169
false, // acep
170-
false); // two_byte_sequence_length
170+
false, // two_byte_sequence_length
171+
false); // address_little_endian
171172
}
172173

173174
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {

ports/raspberrypi/boards/pimoroni_badger2040/board.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ void board_init(void) {
323323
false, // always_toggle_chip_select
324324
false, // grayscale
325325
false, // acep
326-
false); // two_byte_sequence_length
326+
false, // two_byte_sequence_length
327+
false); // address_little_endian
327328
}
328329

329330
void board_deinit(void) {

shared-module/displayio/__init__.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ void common_hal_displayio_release_displays(void) {
154154
common_hal_videocore_framebuffer_deinit(&display_buses[i].videocore);
155155
#endif
156156
#if CIRCUITPY_PICODVI
157-
} else if (displays[i].bus_base.type == &picodvi_framebuffer_type) {
158-
common_hal_picodvi_framebuffer_deinit(&displays[i].picodvi);
157+
} else if (bus_type == &picodvi_framebuffer_type) {
158+
common_hal_picodvi_framebuffer_deinit(&display_buses[i].picodvi);
159159
#endif
160160
}
161161
display_buses[i].bus_base.type = &mp_type_NoneType;
@@ -274,8 +274,8 @@ void reset_displays(void) {
274274
// need to be moved.
275275
#endif
276276
#if CIRCUITPY_PICODVI
277-
} else if (displays[i].bus_base.type == &picodvi_framebuffer_type) {
278-
picodvi_framebuffer_obj_t *vc = &displays[i].picodvi;
277+
} else if (display_bus_type == &picodvi_framebuffer_type) {
278+
picodvi_framebuffer_obj_t *vc = &display_buses[i].picodvi;
279279
if (!any_display_uses_this_framebuffer(&vc->base)) {
280280
common_hal_picodvi_framebuffer_deinit(vc);
281281
}

0 commit comments

Comments
 (0)