Skip to content

Commit a32baf5

Browse files
authored
Merge pull request #387 from mestrode/master
Seeed Xiao BLE boards: enable 2nd LED
2 parents 6180d8a + dd816e5 commit a32baf5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/boards/xiao_nrf52840_ble/board.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
/*------------------------------------------------------------------*/
2929
/* LED
3030
*------------------------------------------------------------------*/
31-
// The board has 3 leds, but changing the number here causes OTA issues.
32-
#define LEDS_NUMBER 1
33-
#define LED_PRIMARY_PIN PINNUM(0, 26)
34-
#define LED_STATE_ON 0
31+
#define LEDS_NUMBER 2
32+
#define LED_PRIMARY_PIN PINNUM(0, 26) // red
33+
#define LED_SECONDARY_PIN PINNUM(0, 6) // blue
34+
#define LED_STATE_ON 0
3535

3636
#define NEOPIXELS_NUMBER 0
3737

src/boards/xiao_nrf52840_ble_sense/board.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
/*------------------------------------------------------------------*/
2929
/* LED
3030
*------------------------------------------------------------------*/
31-
// The board has 3 leds, but changing the number here causes OTA issues.
32-
#define LEDS_NUMBER 1
33-
#define LED_PRIMARY_PIN PINNUM(0, 26)
34-
#define LED_STATE_ON 0
31+
#define LEDS_NUMBER 2
32+
#define LED_PRIMARY_PIN PINNUM(0, 26) // red
33+
#define LED_SECONDARY_PIN PINNUM(0, 6) // blue
34+
#define LED_STATE_ON 0
3535

3636
#define NEOPIXELS_NUMBER 0
3737

0 commit comments

Comments
 (0)