diff --git a/rgb_rainbow.py b/rgb_rainbow.py index 80cea9f..48a036b 100755 --- a/rgb_rainbow.py +++ b/rgb_rainbow.py @@ -33,7 +33,6 @@ try: except KeyboardInterrupt: # Clean up code before exiting the script - for pixel in range(NUM_PIXELS): - NeoPixel.setPixelColor(pixel, Color(0, 0, 0)) - NeoPixel.show() - time.sleep(DELAY_INTERVAL / 1000.0) + for pixel in range(NUM_PIXELS): + NeoPixel.setPixelColor(pixel, Color(0, 0, 0)) + NeoPixel.show()