Skip to content

Commit

Permalink
Merge pull request micropython#6272 from dhalbert/feather_esp32_s2_tf…
Browse files Browse the repository at this point in the history
…t-fix

Force pin 21 high; patch; need to diagnose further
  • Loading branch information
dhalbert authored Apr 10, 2022
2 parents 7d4bb12 + c3cfbc1 commit 4a65664
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ports/espressif/boards/adafruit_feather_esp32s2_tft/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ uint8_t display_init_sequence[] = {


void board_init(void) {
// THIS SHOULD BE HANDLED BY espressif_board_reset_pin_number(), but it is not working.
// TEMPORARY FIX UNTIL IT'S DIAGNOSED.
common_hal_never_reset_pin(&pin_GPIO21);
gpio_set_direction(21, GPIO_MODE_DEF_OUTPUT);
gpio_set_level(21, true);

busio_spi_obj_t *spi = common_hal_board_create_spi(0);
displayio_fourwire_obj_t *bus = &displays[0].fourwire_bus;
bus->base.type = &displayio_fourwire_type;
Expand Down

0 comments on commit 4a65664

Please sign in to comment.