Skip to content

Commit

Permalink
make atomled backwards compatible by making the index argument optional
Browse files Browse the repository at this point in the history
It has a default value of 0 for the first LED.
  • Loading branch information
mgr committed Dec 9, 2021
1 parent e7ab18e commit 04be8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ulisp-esp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4635,7 +4635,7 @@ void init_atomled () {
atom_leds.show();
}

void atomled(uint32_t color, uint16_t index) {
void atomled(uint32_t color, uint16_t index = 0) {
atom_leds.setPixelColor(index, color);
atom_leds.show();
}
Expand Down

0 comments on commit 04be8d0

Please sign in to comment.