A plugin to control a strip of NeoPixels (ws2812b) like a progress bar.
You need a strip of Neopixels of arbitrary length that you are going to control with this. How you wire them up is up to you, but the data line must be attached to the Raspberry Pi along with a connection to ground. For example:
- Install the plugin via the Plugin Manager
- Install the
rpi_ws281x
package globally:sudo pip install rpi_ws281x
- Add
pi ALL=(ALL) NOPASSWD: ALL
to your sudoers file to allow running the NeoPixel script in the plugin without prompt
Using the settings tab in the OctoPrint webinterface some parameters must/can be changed such as:
- Number of LEDs (required)
- Pin that the strip is connected to (required)
- Brightness
- Background color
- Bar color
The default setup uses pin BCM18 (PWM0).
If you are feeling adventurous or definitely need to use another pin, you can find more information on how to control the NeoPixel here
This project is licensed under the GPLv3 - see the LICENSE.md file for details
- Jan Odvárko, for providing the jscolor library
- OctoPrint-Enclosure, for giving me the inspiration