Skip to content

Instantly share code, notes, and snippets.

View lazytomatolab's full-sized avatar

LazyTomato Lab 懶番茄工作室 lazytomatolab

View GitHub Profile
@lazytomatolab
lazytomatolab / Class_13_1.ino
Created December 23, 2018 12:20
【Arduino SpeedUp】快速上手 Class 13 - 迴圈 for 讓你功力大提升!更多資訊請造訪:http://www.lazytomatolab.com
void setup() {
pinMode(13, OUTPUT);
digitalWrite(13, LOW);
for(int counter = 0; counter < 10; counter++) {
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(200);
}
@lazytomatolab
lazytomatolab / Class_14_1.ino
Last active August 7, 2019 04:03
【Arduino SpeedUp】快速上手 Class 14 - 迴圈 while 稱霸 Arduino!更多資訊請造訪:http://www.lazytomatolab.com
void setup() {
pinMode(7, INPUT);
digitalWrite(7, HIGH);
pinMode(13, OUTPUT);
while(digitalRead(7) == HIGH) {
digitalWrite(13, HIGH);
delay(200);
digitalWrite(13, LOW);
delay(200);