From f8e5f56127120160ccdb90b6ff91daabf0df0008 Mon Sep 17 00:00:00 2001 From: ajk1e20 <ajk1e20@soton.ac.uk> Date: Thu, 12 May 2022 19:37:17 +0000 Subject: [PATCH] Replace disco.cpp --- disco.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/disco.cpp b/disco.cpp index e097578..4427f0a 100644 --- a/disco.cpp +++ b/disco.cpp @@ -68,22 +68,4 @@ int main() { ledStrip.show(); 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 -- GitLab