View Class_14_1.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
View Class_13_1.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
View Class_12.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
if(Serial.available()) { | |
int num = Serial.parseInt(); | |
switch(num) { | |
case 1: |
View Class_11_1.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(115200); | |
Serial.println("Hello! This is LazyTomato Lab!"); | |
delay(1000); | |
Serial.println("Please visit: http://www.lazytomatolab.com/"); | |
} | |
void loop() { | |
} |
View Class_10_1.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
View Class_9.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boolean state = false; | |
boolean buttonUp = true; | |
void setup() { | |
pinMode(13, OUTPUT); | |
digitalWrite(13, LOW); | |
pinMode(7, INPUT); | |
digitalWrite(7, HIGH); | |
} |
View Class_8_1.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(7, INPUT); | |
digitalWrite(7, HIGH); | |
pinMode(13, OUTPUT); | |
} | |
void loop() { | |
if(digitalRead(7) != HIGH){ | |
digitalWrite(13, HIGH); | |
} |
View Class_7.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int led = 7; | |
void setup() { | |
pinMode(led, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(led, HIGH); | |
delay(1000); | |
digitalWrite(led, LOW); |
View Class_6.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(7, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(7, HIGH); | |
delay(1000); | |
digitalWrite(7, LOW); | |
delay(1000); | |
} |
View Class_5.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(7, INPUT); | |
digitalWrite(7, HIGH); | |
pinMode(13, OUTPUT); | |
} | |
void loop() { | |
if(digitalRead(7) == HIGH){ | |
digitalWrite(13, HIGH); | |
} |
NewerOlder