fmalekpour / OctoPrint-Gpioshutdown

12 stars 13 forks source link

Enable GPIO 3 #22

Open peterrus opened 3 years ago

peterrus commented 3 years ago

This fixes #3 by allowing you to choose GPIO3 from the dropdown. This is only implemented for the start/stop button (not for the status LED) because GPIO3 also serves as the wake/boot pin (see https://www.embeddedcomputing.com/technology/open-source/development-kits/raspberry-pi-power-up-and-shutdown-with-a-physical-button for an example).

Tested on my Raspberry Pi 3, testing can be done through the Plugin Manager (enter https://github.com/peterrus/OctoPrint-Gpioshutdown/archive/refs/heads/feature/enable-gpio4.zip) until this PR is closed and merged into upstream.

zabelc commented 3 years ago

Just tested on Octoprint 1.6.1 & the fix does what I needed. One button for shutdown and wake. well done!

Picazsoo commented 2 years ago

Hmm - hopefully this will be merged eventually. As it makes total sense. Some warning can be added to the pin in the plugin if needed, but this really makes too much sense for it to be omitted.

peterrus commented 2 years ago

@fmalekpour can we get this into master? I have been using this for 6 months without any problems.