STM32F072CBT with TLC5947 LED Driver
I'm trying to control LED's through a (TI) TLC5947 Driver. All the examples I can find are using a library by Adafruit, bitbanging GPIO's to communicate with the chip. I'm just using the two chips on a custom board and would like to use SPI due to its speed (and control).
I can toggle the driver's blank & latch just fine, but I'm having trouble understanding the Serial part of the communication. Right now I'm sending 12 bits (0xFFF) 24 times, then toggling the latch, but this is clearly wrong because some LEDs are on (very dim) and others are off.
If someone could provide me with some quick example code using SPI using the STM32 HAL, or point me towards a guide for sending this non-conventional way of SPI.
