Skip to content

Commit ce1273b

Browse files
committed
Pull Feather S2 TFT LED down on reset
1 parent f3ca152 commit ce1273b

File tree

1 file changed

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

1 file changed

+12
-0
lines changed

ports/espressif/boards/adafruit_feather_esp32s2_tft/board.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@ bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
144144
gpio_set_level(21, true);
145145
return true;
146146
}
147+
// Pull LED down on reset rather than the default up
148+
if (pin_number == 13) {
149+
gpio_config_t cfg = {
150+
.pin_bit_mask = BIT64(pin_number),
151+
.mode = GPIO_MODE_DISABLE,
152+
.pull_up_en = false,
153+
.pull_down_en = true,
154+
.intr_type = GPIO_INTR_DISABLE,
155+
};
156+
gpio_config(&cfg);
157+
return true;
158+
}
147159
return false;
148160
}
149161

0 commit comments

Comments
 (0)