Open clotaireFrance opened 3 years ago
I have been able to fix this. In my system i have other pluggin that use the classic hardware GPIO numbering, up to 40 and not the BCM numbering. I guess that the GPIO Shutdown pluggin does not take the BCM numbering but the other method. to change this, I have change the file called "GPIOShutdown_settings.jinja2" to select the right pin number. The file is located in "~/oprint/lib/python2.7/site-packages/octoprint_GPIOShutdown/templates/". You can then open the Jinja2 file and change all the button lists for either the button and the LED with this kind of formating :
>> this will display in the pluggin choice list "GPIO 21" following BCM formating, but will store in octoprint the pin 40. Follow these commands and change the lines > you can just leave one line, following your choice or add all pin, with BCM and GPIO formating ``` cd ~/oprint/lib/python2.7/site-packages/octoprint_GPIOShutdown/templates/ nano GPIOShutdown_settings.jinja2 ```
I select the number pin ( bcp expected)
but it select the physical number
example: GPIO 23 is Gpio 11