logging
This commit is contained in:
@@ -54,6 +54,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
if (digitalRead(BUTTON_PIN) == LOW && !buttonPressed)
|
if (digitalRead(BUTTON_PIN) == LOW && !buttonPressed)
|
||||||
{
|
{
|
||||||
|
printf("Button pressed\n");
|
||||||
ledState = (ledState + 1) % NUM_LEDS;
|
ledState = (ledState + 1) % NUM_LEDS;
|
||||||
buttonPressed = true;
|
buttonPressed = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user