Skip to content

Commit 04be8d0

Browse files
author
mgr
committed
make atomled backwards compatible by making the index argument optional
It has a default value of 0 for the first LED.
1 parent e7ab18e commit 04be8d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ulisp-esp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4635,7 +4635,7 @@ void init_atomled () {
46354635
atom_leds.show();
46364636
}
46374637

4638-
void atomled(uint32_t color, uint16_t index) {
4638+
void atomled(uint32_t color, uint16_t index = 0) {
46394639
atom_leds.setPixelColor(index, color);
46404640
atom_leds.show();
46414641
}

0 commit comments

Comments
 (0)