Skip to content

Instantly share code, notes, and snippets.

View lazytomatolab's full-sized avatar

LazyTomato Lab 懶番茄工作室 lazytomatolab

View GitHub Profile
@lazytomatolab
lazytomatolab / Class_4.ino
Last active October 25, 2017 08:43
【Arduino SpeedUp】快速上手 Class 4 - 判斷式 if else 讓你操縱自如!更多資訊請造訪:http://www.lazytomatolab.com/
void setup() {
pinMode(7, INPUT);
pinMode(13, OUTPUT);
}
void loop() {
if(digitalRead(7) == HIGH){
digitalWrite(13, HIGH);
}
else{
@lazytomatolab
lazytomatolab / Class_3.ino
Last active September 27, 2017 02:58
【Arduino SpeedUp】快速上手 Class 3 - 完成你的第一個專案!更多資訊請造訪:http://www.lazytomatolab.com/
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}