I2SClocklessVirtualLedDriver icon indicating copy to clipboard operation
I2SClocklessVirtualLedDriver copied to clipboard

Driver.initled initializing arguments

Open ewoudwijma opened this issue 1 year ago • 3 comments

In order to initialize for different fixtures in runtime it is preferable that currently define NUM_LEDS_PER_STRIP and NBIS2SERIALPINS is replaced by initled arguments. For use in StarLight See also issue about crashing when initled is called twice

ewoudwijma avatar Dec 09 '24 22:12 ewoudwijma

and also __NB_DMA_BUFFER

ewowi avatar Dec 10 '24 16:12 ewowi

These arguments will be set in F_ixture.sc files in StarLight as follows:

image
  • NBIS2SERIALPINS will be derived from the number of (led)pins added
  • NUM_LEDS_PER_STRIP will be derived from the number of leds added to one pin (assuming they are the same for each pin ...)

ewowi avatar Dec 10 '24 18:12 ewowi

Also colorOrder can be set:

image

Clockless driver has driver.setColorOrderPerStrip(0, ORDER_GRB);

I guess it's okay to set it for all strips the same, so loop over all strips needed (how to loop over all strips?)...

What happens if ORDER_GRBW is chosen? Leds array 4 bytes (white channel) or using white subtraction?

ewowi avatar Dec 12 '24 08:12 ewowi