Skip to content

Instantly share code, notes, and snippets.

@artizirk
Created October 2, 2019 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artizirk/6be4657c6d2463f93537b55f07a92787 to your computer and use it in GitHub Desktop.
Save artizirk/6be4657c6d2463f93537b55f07a92787 to your computer and use it in GitHub Desktop.
// 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