Changed RAISING for FALLING

This commit is contained in:
thomasfredericks
2014-01-04 21:20:52 -05:00
parent 8c6fb3b343
commit 299c3fc515
+3 -1
View File
@@ -1,5 +1,7 @@
#include <Bounce.h>
// Detect the falling edge
// Circuit :
// https://raw.github.com/thomasfredericks/Bounce-Arduino-Wiring/master/Bounce/examples/circuit-bounce-change-duration-retrigger.png
@@ -33,7 +35,7 @@ void loop() {
boolean stateChanged = debouncer.update();
int state = debouncer.read();
// Detect the raising edge
// Detect the falling edge
if ( stateChanged && state == LOW ) {
if ( ledState == LOW ) {