Open willnotwish opened 3 years ago
A maximum of eight state machines are available. I wrote a class to model each set of LEDs.
Some additional configuration is required, however, as the two sets of LEDs function differently as far as colours are concerned. Blue and green are transposed on the WS2811 strip. If I swap them in software, they will be the wrong way round for the soldered SK2812 devices. Perhaps I need to specify the device (WS2811 vs SK2812) in the initializer, and shift the bits around appropriately for each.
I also need to move the LED classes to their own module. Otherwise it's confusing for beginners to see all the PIO assembly code.
Now I have a development board driving two sets of LEDs, I need to be able to control them both.
Two PIO state machines are required.