Skip to content

Commit e9bb5cf

Browse files
committed
Do power led
1 parent 1e4fbd9 commit e9bb5cf

File tree

1 file changed

+15
-0
lines changed
  • ports/espressif/boards/makergo_esp32c6_supermini

1 file changed

+15
-0
lines changed

ports/espressif/boards/makergo_esp32c6_supermini/board.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,20 @@
55
// SPDX-License-Identifier: MIT
66

77
#include "supervisor/board.h"
8+
#include "mpconfigboard.h"
9+
#include "shared-bindings/microcontroller/Pin.h"
10+
#include "driver/gpio.h"
11+
#include "common-hal/microcontroller/Pin.h"
12+
13+
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
14+
if (pin_number == 15) {
15+
/*
16+
* Turn on the spare led on boot as a power indicator
17+
*/
18+
config_pin_as_output_with_level(pin_number, true);
19+
return true;
20+
}
21+
return false;
22+
}
823

924
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.

0 commit comments

Comments
 (0)