Skip to content

Commit 0b31677

Browse files
committed
fix(RGB_LED_TLC59731): change too common LED instance name
Using LED as name instance is too common thus it could cause build issue due to duplicate name Signed-off-by: Frederic Pillon <[email protected]>
1 parent e0c5be1 commit 0b31677

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/RGB_LED_TLC59731/examples/RGB_LED_TLC59731/RGB_LED_TLC59731.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ static uint8_t* sequence[] = { RGB_LED_TLC59731::RED,
3131
and to have JP5 on and JP4 off
3232
*/
3333
#if defined(RGB_LED) && defined(LED_SELECT)
34-
RGB_LED_TLC59731 LED(RGB_LED, LED_SELECT);
34+
RGB_LED_TLC59731 myLED(RGB_LED, LED_SELECT);
3535
#else
36-
RGB_LED_TLC59731 LED;
36+
RGB_LED_TLC59731 myLED;
3737
#endif
3838

3939
void setup() {
4040
/* Change Brightness */
41-
LED.setBrightness(0x10);
41+
myLED.setBrightness(0x10);
4242
}
4343

4444
void loop() {
4545
/* Blink */
46-
LED.on(sequence[step]);
46+
myLED.on(sequence[step]);
4747
delay(500);
48-
LED.off();
48+
myLED.off();
4949
delay(500);
5050
step = (step == 6) ? 0 : step + 1;
5151
}

0 commit comments

Comments
 (0)