Skip to content

Instantly share code, notes, and snippets.

@yemreeke
Created November 21, 2020 16:28
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/24eecfad74794b31055f930759114834 to your computer and use it in GitHub Desktop.
Save yemreeke/24eecfad74794b31055f930759114834 to your computer and use it in GitHub Desktop.
int ledDurum=0;
void setup() {
pinMode(13,INPUT);
pinMode(7,OUTPUT);
}
void loop() {
if(digitalRead(13)==1){
ledDurum = !ledDurum;
digitalWrite(7,ledDurum);
delay(300);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment