Fixes Flake 8 issues Adafruit LED Sequins
+import time
import board
import pulseio
-import time
from digitalio import DigitalInOut, Direction
# PWM (fading) LEDs are connected on D0 (PWM not avail on D1)
@@ -26,10 +26,10 @@ while True:
print(brightness)
# reverse the direction of the fading at the ends of the fade:
- if ( brightness <= 0 ):
+ if brightness <= 0:
fade_amount = -fade_amount
counter += 1
- elif ( brightness >= 65535 ):
+ elif brightness >= 65535:
fade_amount = -fade_amount
counter += 1
@@ -40,7 +40,7 @@ while True:
# checking the modulo of the counter.
# the modulo function gives you the remainder of
# the division of two numbers:
- if ( counter % 4 == 0 ):
+ if counter % 4 == 0:
digital_leds.value = True
else:
digital_leds.value = False
