Skip to content

Instantly share code, notes, and snippets.

@HectorTorres

HectorTorres/.c

Created May 15, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.