Skip to content

Instantly share code, notes, and snippets.

@lazytomatolab
Created November 6, 2016 12:48
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 lazytomatolab/d8f37e28c2667ad36250405f2ecbab00 to your computer and use it in GitHub Desktop.
Save lazytomatolab/d8f37e28c2667ad36250405f2ecbab00 to your computer and use it in GitHub Desktop.
【Arduino SpeedUp】快速上手 Class 5 - 麵包板是什麼?好吃嗎?更多資訊請造訪:http://www.lazytomatolab.com/
void setup() {
pinMode(7, INPUT);
digitalWrite(7, HIGH);
pinMode(13, OUTPUT);
}
void loop() {
if(digitalRead(7) == HIGH){
digitalWrite(13, HIGH);
}
else{
digitalWrite(13, LOW);
}
}
@Olivialinden
Copy link

great

@Olivialinden
Copy link

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment