Skip to content

Instantly share code, notes, and snippets.

LazyTomato Lab 軟爛番茄工作室 lazytomatolab

Block or report user

Report or block lazytomatolab

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lazytomatolab
lazytomatolab / Class_13_1.ino
Created Dec 23, 2018
【Arduino SpeedUp】快速上手 Class 13 - 迴圈 for 讓你功力大提升!更多資訊請造訪:http://www.lazytomatolab.com
View Class_13_1.ino
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_12.ino
Created Dec 23, 2017
【Arduino SpeedUp】快速上手 Class 12 - 分類帽 switch case 降臨!更多資訊請造訪:http://www.lazytomatolab.com
View Class_12.ino
void setup() {
Serial.begin(115200);
}
void loop() {
if(Serial.available()) {
int num = Serial.parseInt();
switch(num) {
case 1:
@lazytomatolab
lazytomatolab / Class_11_1.ino
Created Sep 27, 2017
【Arduino SpeedUp】快速上手 Class 11 - Serial monitor 讀心術!更多資訊請造訪:http://www.lazytomatolab.com
View Class_11_1.ino
void setup() {
Serial.begin(115200);
Serial.println("Hello! This is LazyTomato Lab!");
delay(1000);
Serial.println("Please visit: http://www.lazytomatolab.com/");
}
void loop() {
}
@lazytomatolab
lazytomatolab / Class_10_1.ino
Created Aug 20, 2017
【Arduino SpeedUp】快速上手 Class 10 - 互動?遊戲?按鈕特輯 3!更多資訊請造訪:http://www.lazytomatolab.com
View Class_10_1.ino
boolean state = false;
boolean buttonUp = true;
void setup() {
pinMode(7, INPUT);
pinMode(8, OUTPUT); // INA
digitalWrite(8, LOW);
pinMode(9, OUTPUT); // INB
digitalWrite(9, LOW);
}
@lazytomatolab
lazytomatolab / Class_9.ino
Last active Jul 2, 2017
【Arduino SpeedUp】快速上手 Class 9 - 邏輯?旗標?按鈕特輯 2!更多資訊請造訪:http://www.lazytomatolab.com
View Class_9.ino
boolean state = false;
boolean buttonUp = true;
void setup() {
pinMode(13, OUTPUT);
digitalWrite(13, LOW);
pinMode(7, INPUT);
digitalWrite(7, HIGH);
}
@lazytomatolab
lazytomatolab / Class_8_1.ino
Created Apr 30, 2017
【Arduino SpeedUp】快速上手 Class 8 - 互動?遊戲?按鈕特輯!更多資訊請造訪:http://www.lazytomatolab.com
View Class_8_1.ino
void setup() {
pinMode(7, INPUT);
digitalWrite(7, HIGH);
pinMode(13, OUTPUT);
}
void loop() {
if(digitalRead(7) != HIGH){
digitalWrite(13, HIGH);
}
@lazytomatolab
lazytomatolab / Class_7.ino
Created Dec 29, 2016
【Arduino SpeedUp】快速上手 Class 7 - 程式宣告?取個綽號吧!更多資訊請造訪:http://www.lazytomatolab.com
View Class_7.ino
int led = 7;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
@lazytomatolab
lazytomatolab / Class_6.ino
Created Dec 7, 2016
【Arduino SpeedUp】快速上手 Class 6 - LED 與電阻的必學之術!更多資訊請造訪:http://www.lazytomatolab.com
View Class_6.ino
void setup() {
pinMode(7, OUTPUT);
}
void loop() {
digitalWrite(7, HIGH);
delay(1000);
digitalWrite(7, LOW);
delay(1000);
}
@lazytomatolab
lazytomatolab / Class_5.ino
Created Nov 6, 2016
【Arduino SpeedUp】快速上手 Class 5 - 麵包板是什麼?好吃嗎?更多資訊請造訪:http://www.lazytomatolab.com/
View Class_5.ino
void setup() {
pinMode(7, INPUT);
digitalWrite(7, HIGH);
pinMode(13, OUTPUT);
}
void loop() {
if(digitalRead(7) == HIGH){
digitalWrite(13, HIGH);
}
@lazytomatolab
lazytomatolab / Class_4.ino
Last active Oct 25, 2017
【Arduino SpeedUp】快速上手 Class 4 - 判斷式 if else 讓你操縱自如!更多資訊請造訪:http://www.lazytomatolab.com/
View Class_4.ino
void setup() {
pinMode(7, INPUT);
pinMode(13, OUTPUT);
}
void loop() {
if(digitalRead(7) == HIGH){
digitalWrite(13, HIGH);
}
else{
You can’t perform that action at this time.