]> git.piffa.net Git - sketchbook_andrea/blobdiff - basic/buttons/button_1/button_1.ino
RF e keypad
[sketchbook_andrea] / basic / buttons / button_1 / button_1.ino
index 15e9abea8233cdf92f27bdd330d5861fa0d286cd..27987bcc3e7e7a62fa3650ca9a6e1fa3823c8707 100644 (file)
@@ -20,10 +20,10 @@ void setup() {
 
 // the loop routine runs over and over again forever:
 void loop() {
-  if (digitalRead(input) == HIGH) { // Verifica se il PIN input e' +5v
+  if (digitalRead(input) == HIGH) { // Verifica se il PIN input e' +5V
     digitalWrite(led, HIGH);
   } 
-  else { // Alterativa: se non e' +5v
+  if (digitalRead(input) == LOW) { // Verifica se il PIN input e' 0V
     digitalWrite(led, LOW);
   }
 }