Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu dieser Vergleichsansicht

project:arduino-kickstarter-105 [20.11.2013 22:27]
paalsteek
project:arduino-kickstarter-105 [20.11.2013 22:27] (aktuell)
paalsteek
Zeile 36: Zeile 36:
     // read the state of the switch into a local variable:     // read the state of the switch into a local variable:
     int reading = digitalRead(buttonPin);​     int reading = digitalRead(buttonPin);​
 +  ​
     // check to see if you just pressed the button     // check to see if you just pressed the button
     // (i.e. the input went from LOW to HIGH), ​ and you've waited     // (i.e. the input went from LOW to HIGH), ​ and you've waited
     // long enough since the last press to ignore any noise:  ​     // long enough since the last press to ignore any noise:  ​
 +  ​
     // If the switch changed, due to noise or pressing:     // If the switch changed, due to noise or pressing:
     if (reading != lastButtonState) {     if (reading != lastButtonState) {
project/arduino-kickstarter-105.txt · Zuletzt geändert: 20.11.2013 22:27 von paalsteek
 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Driven by DokuWiki