Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- // put your setup code here, to run once:
- for (int i = 2; i <= 10; i++) {
- pinMode(i, OUTPUT);
- }
- pinMode(11, INPUT);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- if (digitalRead(11)) {
- digitalWrite(11, HIGH);
- for (int j = 2; j < 10; j++) {
- digitalWrite(j, HIGH);
- delay(3000);
- }
- delay(5000);
- for (int j = 2; j < 10; j++) {
- digitalWrite(j, LOW);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement