Skip to content

Instantly share code, notes, and snippets.

@deviceplususer
Created September 20, 2019 05:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deviceplususer/993480844b82169d8843c41e31cc7c7b to your computer and use it in GitHub Desktop.
Save deviceplususer/993480844b82169d8843c41e31cc7c7b to your computer and use it in GitHub Desktop.
const int DIN_PIN = 7;
void setup(){
pinMode( DIN_PIN, INPUT );
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