code stable, colors look great, and fast
@@ -13,7 +13,6 @@ import neopixel
import random
import time
from analogio import AnalogIn
-# pylint: disable=global-statement
n_leds = 29 # number of LEDs per horn
led_pin = board.D0 # which pin your pixels are connected to
@@ -96,7 +95,6 @@ while True:
wave[w][value_pixel] = wave[w][value_frame]
# Render current animation frame. COGNITIVE HAZARD: fixed point math.
-
for i in range(n_leds): # for each LED along strip...
# Coarse (8-bit) HSV-to-RGB conversion, hue first:
n = (wave[wave_h][value_pixel] % 43) * 6 # angle within sextant
