Hi Chris,
this led-driver uses two kind of clocks. One is ment for the datatransmission (thus SPI-clk) and the other one for the PWM-timing. The SPI transfer which I use at 12-bit works fine. However this grayscale clock (GSCLK) is causing me a headache.
The problem with this is that the internal counter of the driver is using the grayscale clock as a trigger (for counting). When it reaches 4096 (12 bit) it does not reset automatically. This has to be done by activating(BLANK) exactly after 4096 GSCLK cycles. While blank is active, the outputs are off.
One of the other things is that new data can be shifted in during a "grayscale cycle" but only can be latched at the end of it. So this driver needs some specific timing and I think native code is a better solution at this point in time because of performance.
I have really tried to make it work (e.g. by using the PWM class for blank and gsclk) but for now I think I will look for another driver.
By the way, do you think there is another solution?
Benjamin's Content
There have been 3 items by Benjamin (Search limited from 28-April 23)