I've been do some reading and it seems that some APA102s work just fine with the Pi alone but some only work with a Level Converter. I bought one of these after my first failed attempt. I wired it in to my circuit trying to get only one LED working but I haven't had any luck. I'm pretty sure that my circuit is correct and pretty sure that I have the SPI enabled on the Pi. The only thing I'm not sure about is the code. Here is the code.
Code: Select all
import spidev import time spi = spidev.SpiDev() spi.open(0,1) 'tried spi.open(0,0) as well resp = spi.xfer(000, 000, 000, 000) resp = spi.xfer(255, 255, 000, 000) resp = spi.xfer(255, 255, 255, 255)
Here's the datasheet for the LEDs