Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- pinMode(7, INPUT);
- pinMode(6, OUTPUT);
- }
- void loop()
- {
- while (digitalRead(7) == 1) {
- digitalWrite(6, HIGH);
- delay(1000); // Wait for 1000 millisecond(s)
- digitalWrite(6, LOW);
- delay(1000); // Wait for 1000 millisecond(s)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement