Created
August 14, 2011 04:02
-
-
Save thiagoalz/1144555 to your computer and use it in GitHub Desktop.
Codigo de teste para detectar o pressionar de um botão o aterrando!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool val2; | |
void setup() | |
{ | |
pinMode(2, INPUT); | |
digitalWrite(2, HIGH); | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
delay(100); | |
val2 = !digitalRead(2) ; | |
Serial.println(val2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment