This is likely an obvious one, however, I want to use the “slave select” built into the FastLED library. In particular, I’m using the APA102Controller but on the surface it doesn’t seem like I can gain access to the “setSelect” function of SPIOutput class since it’s privately held.
What’s the trick in associating an OutputPin as the slave select for a particular APA102Controller? It looks all plumed to support it, I just don’t see the intended way to set it.
I suppose I can create my own template APA102Controller that allows you to specify the Slave Select pin but wanted to check here first.
Thanks in advance for any help.
Larry
The slave select functionality wasn’t ever fully implemented - you can manually tweak slave select pins, but you will need some extra wiring/components to make it work (the apa102 has no concept of a select line)
Ah, thanks much for the follow up. Yes, I have external logic that manages selecting the correct strip. I did manually implement SS, however, it doesn’t play nicely with features such as dithering where it’s nice to call FastLED.delay() which keeps the dithering running. As you know, that calls show() which only handles the slave select if done within the library. Again, thanks for the response and generation of such a useful open source library.
Just a follow up that I simply added a template class that passes in a pin for slave select and used the existing code in SPI_Output. Works like a champ.