SPI for 24 bits | Cypress Semiconductor
SPI for 24 bits
The current SPI component "out of the box" supports only a bit length maximum of 16 bits. Can the code be modified to support 24 bits?
I'm trying to interface to WS2801 and SM16715 LED string controllers, which have data + clock lines, and appear to be compatible with the SPI control... except they require 24 bits (8 each for red, green, and blue).
Seems to me (and I haven't peered into the existing code for SPI - yet) that the 16-bit limit is probably hard-coded, and if I changed the limit to 24 and stored as my own component, it should work.
Ultimately I'd like to implement a PSoC-compatible library of LED string controllers similar to what's done for Arduino on the FastLED.io site. The single-line WS2811/WS2812 devices already have a PSoC component that controls multiple strings.