Page 1 of 1

Adafruit TLC5947 won't work with pyboard and spi

Posted: Mon Jan 09, 2017 7:47 pm
by crosaire
Hello micropython Gurus..!!

Does anyone have any experience using the adafruit TLC5947 PWM LED controller..??

https://learn.adafruit.com/tlc5947-tlc5 ... l#overview

adafruit documentation leaves a lot to assumption.... their examples are with arduinos and c.

I have not been able to figure out exactly what I need to send on spi to function this thing....

Also, the pins on this thing are lat, oe, clk, datain, gnd, V+.

I am assuming that the lat pin is the chip select... I've tried to it connected to ss on the pyboard and I've tried to control the pin via X1... and via just physically wiring it hard from low to high to low.

I am not sure what my spi.send should look like... i've tried spi.send('0, 4095'), I've tried spi.send('0'), spi.send('4095') and spi.send(0), spi.send(4095) and so on.

Any help or examples would be greatly appreciated..!

Regards,
CRosaire

Re: Adafruit TLC5947 won't work with pyboard and spi

Posted: Tue Jan 10, 2017 10:17 am
by deshipu
At https://learn.adafruit.com/tlc5947-tlc5 ... -and-links you have the schematic and the datasheets. That should contain much more detail, more than enough to write a MicroPython library for it.