1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

bug fixes to StateChangeDetection and ToneMelody examples

This commit is contained in:
Tom Igoe
2010-10-14 14:46:51 -04:00
parent 9cad196ae5
commit 81de2b5a05
2 changed files with 8 additions and 5 deletions

View File

@ -16,7 +16,7 @@
most Arduino boards)
created 27 Sep 2005
modified 30 Dec 2009
modified 14 Oct 2010
by Tom Igoe
This example code is in the public domain.
@ -64,11 +64,11 @@ void loop() {
// wend from on to off:
Serial.println("off");
}
// save the current state as the last state,
//for next time through the loop
lastButtonState = buttonState;
}
// save the current state as the last state,
//for next time through the loop
lastButtonState = buttonState;
// turns on the LED every four button pushes by
// checking the modulo of the button push counter.