Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created May 15, 2017 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HectorTorres/c3bfea3623ce28659595f4dcd4d0e0d0 to your computer and use it in GitHub Desktop.
Save HectorTorres/c3bfea3623ce28659595f4dcd4d0e0d0 to your computer and use it in GitHub Desktop.
int button =13;
void setup()
{
Serial.begin(9600);
pinMode(button,INPUT);
}
void loop()
{
int switchEstado = digitalRead(button);
Serial.print(switchEstado);
delay(400);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment