This commit is contained in:
talksik
2024-01-25 13:48:15 -08:00
parent 6fc30899ae
commit e4606e6621
+1
View File
@@ -54,6 +54,7 @@ int main(int argc, char *argv[])
{
if (digitalRead(BUTTON_PIN) == LOW && !buttonPressed)
{
printf("Button pressed\n");
ledState = (ledState + 1) % NUM_LEDS;
buttonPressed = true;
}