Skip to content

Commit 4a65664

Browse files
authored
Merge pull request #6272 from dhalbert/feather_esp32_s2_tft-fix
Force pin 21 high; patch; need to diagnose further
2 parents 7d4bb12 + c3cfbc1 commit 4a65664

File tree

1 file changed

+6
-0
lines changed
  • ports/espressif/boards/adafruit_feather_esp32s2_tft

1 file changed

+6
-0
lines changed

ports/espressif/boards/adafruit_feather_esp32s2_tft/board.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ uint8_t display_init_sequence[] = {
7171

7272

7373
void board_init(void) {
74+
// THIS SHOULD BE HANDLED BY espressif_board_reset_pin_number(), but it is not working.
75+
// TEMPORARY FIX UNTIL IT'S DIAGNOSED.
76+
common_hal_never_reset_pin(&pin_GPIO21);
77+
gpio_set_direction(21, GPIO_MODE_DEF_OUTPUT);
78+
gpio_set_level(21, true);
79+
7480
busio_spi_obj_t *spi = common_hal_board_create_spi(0);
7581
displayio_fourwire_obj_t *bus = &displays[0].fourwire_bus;
7682
bus->base.type = &displayio_fourwire_type;

0 commit comments

Comments
 (0)