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