Skip to content

Instantly share code, notes, and snippets.

View realjax's full-sized avatar

jh realjax

  • The Netherlands
View GitHub Profile
/*
DigitalReadSerial
Reads a digital input on pin 2, prints the result to the serial monitor
This example code is in the public domain.
*/
// digital pin 2 has a pushbutton attached to it. Give it a name:
int pushButton = 2;
int buttonStateHistory = 0 ;