This is a simple example on how to interface with a TLC5973
IC to dim LEDs in Raspberry Pi.
It uses SPI to generate a pulse train with precise timing.
In Raspberry Pi, the SPI may have some inter-byte delay, which makes this useless. More here: https://www.raspberrypi.org/forums/viewtopic.php?t=211152
I'm using go-rpio
to manage the SPI device.
The idea to use SPI came from this repo: https://github.com/mik4el/cc1350-swim-thermo/blob/b2fdb54a940e18911959a5e1778ca7fc06915a11/software/tlc5973_spimaster_CC1350_SWIMTHERMO_tirtos_ccs/spimaster.c