File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
arduino_nano_esp32s3_inverted_statusled Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 27
27
#include "supervisor/board.h"
28
28
#include "mpconfigboard.h"
29
29
#include "shared-bindings/microcontroller/Pin.h"
30
+ #include "components/driver/include/driver/gpio.h"
30
31
31
32
void board_init (void ) {
32
33
// Debug UART
@@ -36,4 +37,14 @@ void board_init(void) {
36
37
#endif
37
38
}
38
39
40
+ bool espressif_board_reset_pin_number (gpio_num_t pin_number ) {
41
+ if (pin_number == 13 ) {
42
+ // Set D13 LED to output by default.
43
+ gpio_set_direction (pin_number , GPIO_MODE_DEF_OUTPUT );
44
+ return true;
45
+ }
46
+
47
+ return false;
48
+ }
49
+
39
50
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
Original file line number Diff line number Diff line change 27
27
#include "supervisor/board.h"
28
28
#include "mpconfigboard.h"
29
29
#include "shared-bindings/microcontroller/Pin.h"
30
+ #include "components/driver/include/driver/gpio.h"
30
31
31
32
void board_init (void ) {
32
33
// Debug UART
@@ -36,4 +37,14 @@ void board_init(void) {
36
37
#endif
37
38
}
38
39
40
+ bool espressif_board_reset_pin_number (gpio_num_t pin_number ) {
41
+ if (pin_number == 13 ) {
42
+ // Set D13 LED to output by default.
43
+ gpio_set_direction (pin_number , GPIO_MODE_DEF_OUTPUT );
44
+ return true;
45
+ }
46
+
47
+ return false;
48
+ }
49
+
39
50
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
You can’t perform that action at this time.
0 commit comments