cp2004 / OctoPrint-WS281x_LED_Status

Add some RGB LEDs to your printer for a quick status update!
https://plugins.octoprint.org/plugins/ws281x_led_status
GNU Affero General Public License v3.0
111 stars 26 forks source link

[Request]: Add support for SPI1 LEDs #194

Open cp2004 opened 2 years ago

cp2004 commented 2 years ago

What would you like implemented?

SPI1 is not able to be used, only SPI0 (GPIO 10)

The library rpi_ws281x limits this. Try and patch this upstream, then bump the dependency in the plugin

Why should this be implemented?

Would allow for slightly more freedom with what GPIO can be used (or for multiple programs to use SPI)

cp2004 commented 1 year ago

Try this:

Add the following additional lines to /boot/config.txt to enable SPI1:

dtoverlay=spi1-1cs

Then reboot.

Install the patched up dependency:

UPDATED: rpi_ws281x-4.3.4.zip

Either download & then use plugin manager 'from file', or enter the below URL in 'from URL':

https://github.com/cp2004/OctoPrint-WS281x_LED_Status/files/10384042/rpi_ws281x-4.3.4.zip

Switch the plugin to use GPIO 20, connect the LEDs there, and maybe it might work