Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
project:arduino-kickstarter-105 [20.11.2013 21:27] paalsteekproject:arduino-kickstarter-105 [20.11.2013 21: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 21:27 von paalsteek
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Driven by DokuWiki