Skip to content

Instantly share code, notes, and snippets.

@yemreeke
Last active November 21, 2020 16:27
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 yemreeke/a045d3f9d4e5ff3632f86f6a61885733 to your computer and use it in GitHub Desktop.
Save yemreeke/a045d3f9d4e5ff3632f86f6a61885733 to your computer and use it in GitHub Desktop.
void setup() {
pinMode(13,INPUT);
pinMode(7,OUTPUT);
}
void loop() {
if(digitalRead(13)==HIGH){
digitalWrite(7,HIGH);
}
else {
digitalWrite(7,LOW);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment