Created
October 2, 2019 17:32
-
-
Save artizirk/6be4657c6d2463f93537b55f07a92787 to your computer and use it in GitHub Desktop.
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
// the setup function runs once when you press reset or power the board | |
void setup() { | |
// seadista kõik 10 pinni arduino peal väljunditeks | |
for (int i=2; i<13; i++){ | |
pinMode(i, OUTPUT); | |
} | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
for (int i=9; i<13; i++){ // ledid 9-12 | |
digitalWrite(i, HIGH); // turn the LED on (HIGH is the voltage level) | |
delay(100); // wait for a second | |
digitalWrite(i, LOW); // turn the LED off by making the voltage LOW | |
delay(100); // wait for a second | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment