Skip to content

Instantly share code, notes, and snippets.

@deviceplususer
Created September 20, 2019 05:16
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 deviceplususer/f18934d516ea835f04a094656177ac12 to your computer and use it in GitHub Desktop.
Save deviceplususer/f18934d516ea835f04a094656177ac12 to your computer and use it in GitHub Desktop.
const int DIN_PIN = 7;
void setup(){
pinMode( DIN_PIN, INPUT_PULLUP );
Serial.begin( 9600 );
}
void loop(){
int value;
value = digitalRead( DIN_PIN );
Serial.println( value );
delay( 1000 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment