Skip to content

Commit 0d92b0a

Browse files
authored
Update board.c
1 parent b193597 commit 0d92b0a

File tree

1 file changed

+1
-17
lines changed
  • ports/espressif/boards/lilygo_ttgo_t-oi-plus

1 file changed

+1
-17
lines changed

ports/espressif/boards/lilygo_ttgo_t-oi-plus/board.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,13 @@
33

44
#include "components/driver/include/driver/gpio.h"
55

6-
void board_init(void) {
6+
void board_init(void) {
77
}
88

99
bool board_requests_safe_mode(void) {
1010
return false;
1111
}
1212

13-
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
14-
// Pull LED down on reset rather than the default up
15-
if (pin_number == MICROPY_HW_LED_STATUS->number) {
16-
gpio_config_t cfg = {
17-
.pin_bit_mask = BIT64(pin_number),
18-
.mode = GPIO_MODE_DISABLE,
19-
.pull_up_en = false,
20-
.pull_down_en = true,
21-
.intr_type = GPIO_INTR_DISABLE,
22-
};
23-
gpio_config(&cfg);
24-
return true;
25-
}
26-
return false;
27-
}
28-
2913
void reset_board(void) {
3014
}
3115

0 commit comments

Comments
 (0)