Skip to content

Commit cfcc1c4

Browse files
committed
Init all onboard LEDs for pca10056
Need to init the 2 missing onboard LEDs for pca10056.
1 parent ceca3f2 commit cfcc1c4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

variants/pca10056/variant.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,17 @@ const uint32_t g_ADigitalPinMap[] =
3939

4040
void initVariant()
4141
{
42-
// LED1 & LED2
42+
// init all 4 onboard LEDs
4343
pinMode(PIN_LED1, OUTPUT);
4444
ledOff(PIN_LED1);
4545

4646
pinMode(PIN_LED2, OUTPUT);
47-
ledOff(PIN_LED2);;
47+
ledOff(PIN_LED2);
48+
49+
pinMode(PIN_LED3, OUTPUT);
50+
ledOff(PIN_LED3);
51+
52+
pinMode(PIN_LED4, OUTPUT);
53+
ledOff(PIN_LED4);
4854
}
4955

0 commit comments

Comments
 (0)