Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int ledPins[] = {7,8,9,10};
- void setup() {
- for(int i = 0; i < 8; i++){
- pinMode(ledPins[i],OUTPUT);
- }
- }
- void loop() {
- for(int i = 0; i<= 4;){
- digitalWrite(ledPins[i], HIGH);
- delay(100);
- digitalWrite(ledPins[i], LOW);
- delay(100);
- i++;
- }
- }
Add Comment
Please, Sign In to add comment