WS2812 troubleshooting

This commit is contained in:
2026-04-12 20:52:03 +02:00
parent f02eff1e19
commit 470fc49114

View File

@@ -277,11 +277,15 @@ _wifi_sta = None
print("DEBUG: wifi globals set") print("DEBUG: wifi globals set")
print("DEBUG: about to init LED pins") print("DEBUG: about to init LED pins")
print("DEBUG: computing len(gauges)...")
num_gauges = len(gauges) num_gauges = len(gauges)
print(f"DEBUG: num_gauges = {num_gauges}")
leds_red = [] leds_red = []
leds_green = [] leds_green = []
leds_bl = [] leds_bl = []
print("DEBUG: about to loop over gauges for pins")
for g in gauges: for g in gauges:
print(f"DEBUG: initializing pins for gauge: {g['name']}")
leds_red.append(Pin(g["red_pin"], Pin.OUT, value=0)) leds_red.append(Pin(g["red_pin"], Pin.OUT, value=0))
leds_green.append(Pin(g["green_pin"], Pin.OUT, value=0)) leds_green.append(Pin(g["green_pin"], Pin.OUT, value=0))
print("DEBUG: LED pins initialized") print("DEBUG: LED pins initialized")