Skip to content

Commit bf6237e

Browse files
authored
nrf52820_microbit: HID LED initially off (#9)
1 parent dcc39aa commit bf6237e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

source/board/microbitv2/microbitv2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ static inline uint8_t get_led_gamma(uint8_t brightness) {
203203
// Called in main_task() to init before USB and files are configured
204204
static void prerun_board_config(void)
205205
{
206+
// HID_LED_DEF is on so the resting state of the orange LED after flashing is on
207+
// but turn it off here so it's initially off, then stays off when on battery,
208+
// and comes on only when USB enumerates
209+
gpio_set_hid_led(GPIO_LED_OFF);
210+
206211
mb_version_t board_version = read_brd_rev_id();
207212
set_board_id(board_version);
208213

0 commit comments

Comments
 (0)