Update bounce_m5stack_atom_key-unit.ino

This commit is contained in:
Thomas O Fredericks
2024-01-11 12:24:10 -05:00
parent 9276539335
commit 371e2cff35
@@ -53,13 +53,13 @@ void loop() {
// IF THE BUTTON WAS PRESSED THIS LOOP:
if (button.pressed()) {
// DO SOMETHING IF THE BUTTON WAS PRESSED THIS LOOP...
if ( ledToggle ) {
if (ledToggle) {
ledToggle = false;
mesPixels[0] = CRGB(0, 0, 0);
} else {
ledToggle = true;
mesPixels[0] = CRGB(255,255,255);
mesPixels[0] = CRGB(255, 255, 255);
}
FastLED.show();