I'm trying to control LEDs on a matrix ( https://www.adafruit.com/product/2294 , WS2812B based) using a FT232H ( https://www.adafruit.com/product/2264 ).
Although the code runs without any exception no LEDs are turned on. I've tried multiple matrices and FT232H, it seems not to be a hardware failure. Furthermore it is definitely soldered correctly and if I connect a simple LED strip it's working.
Setup:
- Ubuntu 20.04 notebook with python3.8
Connected a FT232H to the notebook
Connected the matrix to the FT232H using FT232H 5V to NeoPixel VIN, FT232H GND to NeoPixel GND, FT232H D1 to NeoPixel DIN ( https://learn.adafruit.com/circuitpytho ... 2h-example )
- Adafruit-Blinka 6.12.0
adafruit-circuitpython-busdevice 5.0.6
adafruit-circuitpython-neopixel-spi 0.9.1
adafruit-circuitpython-pypixelbuf 2.2.6
Adafruit-PlatformDetect 3.15.3
Adafruit-PureIO 1.1.9
pyftdi 0.53.1
Python code:
Code: Select all
import board # type: ignore
import neopixel_spi as neopixel # type: ignore
NUM_PIXELS = 5
PIXEL_ORDER = neopixel.GRB
spi = board.SPI()
pixels = neopixel.NeoPixel_SPI(
spi,
n=NUM_PIXELS,
brightness=0.05,
pixel_order=PIXEL_ORDER,
)
pixels.fill(0xFFFFFF)
# Doing some stuff...
pixels.fill(0x000000)