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); |
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); | |
} |
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: |
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() { | |
} |
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); | |
} |
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); | |
} |
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); | |
} |
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); |
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); | |
} |
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