We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94dd2de commit 019494cCopy full SHA for 019494c
1 file changed
src/boards/boards.c
@@ -121,14 +121,15 @@ uint32_t tusb_hal_millis(void)
121
122
123
static uint32_t primary_cycle_length = 50;
124
-static uint32_t g_led_pin = 7;
+static uint32_t g_led_pin = LED_PRIMARY_PIN;
125
#ifdef LED_SECONDARY_PIN
126
static uint32_t secondary_cycle_length;
127
#endif
128
129
void led_init(uint32_t led_index, uint32_t led_pin) {
130
g_led_pin = led_pin;
131
nrf_gpio_cfg_output(led_pin);
132
+ nrf_gpio_pin_write(led_pin, !LED_STATE_ON);
133
}
134
135
void led_tick() {
0 commit comments