Duet SBC WS281x Progress Bar
keyz182 last edited by
I wrote up a quick bit of code last night/this morning to control WS281x LEDs from a PI running the Duet Software Platform.
It uses the RPI_WS281X under the hood, so it's limitations apply to pin choices. I'm defaulting to GPIO12 in PWM mode, as DSF uses the SPI pin.
Right now it's using the duration and file time left to calculate progress, as I couldn't find a progress variable in the object model in DuetAPI (not saying it's not there, just couldn't find it).
I have considered being able to reserve LEDs at the start/end for indicators of other things, but not sure what - any suggestions? e.g. heater x on, fan x on, fan x speed (e.g. red to green or brightness of blue), etc.
To use, grab the zip from the releases tab, extract to
/opt/LEDProgress, and install the systemd service as stated in the readme.
Modify the command line args as appropriate in the service file before installation. Defaults are my setup, so Pin 12, 56 LEDs, 255 max brightness.