mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Fixed 02.Digital/StateChangeDetection buoncing issue
This commit is contained in:
@ -64,6 +64,8 @@ void loop() {
|
|||||||
// wend from on to off:
|
// wend from on to off:
|
||||||
Serial.println("off");
|
Serial.println("off");
|
||||||
}
|
}
|
||||||
|
// Delay a little bit to avoid bouncing
|
||||||
|
delay(50);
|
||||||
}
|
}
|
||||||
// save the current state as the last state,
|
// save the current state as the last state,
|
||||||
//for next time through the loop
|
//for next time through the loop
|
||||||
|
Reference in New Issue
Block a user