Skip to content
Snippets Groups Projects
Commit f8e5f561 authored by ajk1e20's avatar ajk1e20
Browse files

Replace disco.cpp

parent 56fc661b
No related branches found
No related tags found
No related merge requests found
...@@ -68,22 +68,4 @@ int main() { ...@@ -68,22 +68,4 @@ int main() {
ledStrip.show(); ledStrip.show();
sleep_ms(counter); sleep_ms(counter);
} }
//Add on off buttons
/*
while (true) {
// Pick a random color
uint32_t color = (uint32_t)rand();
// Pick a random direction
int8_t dir = (rand() & 1 ? 1 : -1);
// Setup start and end offsets for the loop
uint8_t start = (dir > 0 ? 0 : LED_LENGTH);
uint8_t end = (dir > 0 ? LED_LENGTH : 0);
for (uint8_t ledIndex = start; ledIndex != end; ledIndex += dir) {
ledStrip.setPixelColor(ledIndex, color);
ledStrip.show();
sleep_ms(50);
}
}
*/
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment