Created
September 20, 2019 05:16
-
-
Save deviceplususer/f18934d516ea835f04a094656177ac12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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