From 954a52cc4dd0a8bda11d1994464b0048c98ba25e Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 24 Mar 2024 22:51:03 +0100 Subject: [PATCH] improve linting --- rgb_rainbow.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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()