WS2812 troubleshooting
This commit is contained in:
@@ -286,8 +286,12 @@ leds_bl = []
|
|||||||
print("DEBUG: about to loop over gauges for pins")
|
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']}")
|
print(f"DEBUG: initializing pins for gauge: {g['name']}")
|
||||||
|
print(f"DEBUG: red_pin={g['red_pin']}, green_pin={g['green_pin']}")
|
||||||
|
print("DEBUG: creating red Pin...")
|
||||||
leds_red.append(Pin(g["red_pin"], Pin.OUT, value=0))
|
leds_red.append(Pin(g["red_pin"], Pin.OUT, value=0))
|
||||||
|
print("DEBUG: red Pin created, creating green Pin...")
|
||||||
leds_green.append(Pin(g["green_pin"], Pin.OUT, value=0))
|
leds_green.append(Pin(g["green_pin"], Pin.OUT, value=0))
|
||||||
|
print("DEBUG: green Pin created")
|
||||||
print("DEBUG: LED pins initialized")
|
print("DEBUG: LED pins initialized")
|
||||||
|
|
||||||
total_backlight_leds = num_gauges * (BACKLIGHT_LEDS_PER_GAUGE + STATUS_LEDS_PER_GAUGE)
|
total_backlight_leds = num_gauges * (BACKLIGHT_LEDS_PER_GAUGE + STATUS_LEDS_PER_GAUGE)
|
||||||
|
|||||||
Reference in New Issue
Block a user