Created
June 20, 2025 09:40
-
-
Save maxpromer/ee45477c86a5cb40ab0d7f3abb78530f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const uint8_t io[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 18, 19, 20, 21, 22, 23 }; | |
void setup() { | |
for (int i=0;i<sizeof(io);i++) { | |
pinMode(io[i], OUTPUT); | |
} | |
} | |
void loop() { | |
for (int i=0;i<sizeof(io);i++) { | |
digitalWrite(io[i], HIGH); | |
delay(100); | |
} | |
for (int i=0;i<sizeof(io);i++) { | |
digitalWrite(io[i], LOW); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment