This repository was archived by the owner on Sep 6, 2023. It is now read-only.
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
Closed
Description
Discovered on PyCon AU sprint day.
Using default values, a set of Neopixels don't seem to operate correctly and, instead, flicker at maximum brightness.
A work-around, changing an undocumented parameter, was discovered.
def fade_in(pixel, max_brightness=80, delay=20):
for i in range(max_brightness):
pixel.fill((i,i,i))
pixel.write()
time.sleep_ms(delay)
pixel = neopixel.NeoPixel(machine.Pin(12), 8)
fade_in(pixel)
# Flickers like crazy; note that the default for 'timing' is False
pixel = neopixel.NeoPixel(machine.Pin(12), 8, timing=True)
fade_in(pixel)
# Works as expected
What is the intent of the timing
parameter? Should the default for ESP32 (like ESP8266!) be True? Or does a False value correctly work on one of the other Neopixel variants (APA10x) support?
Metadata
Metadata
Assignees
Labels
No labels