NeonHorizon / lipopi

Guide to setting up LiPo batteries on the Raspberry Pi
GNU General Public License v3.0
416 stars 62 forks source link

using other pin than 14 #40

Closed yosorg closed 6 years ago

yosorg commented 6 years ago

Since I burn my GPIO 14 I found here https://www.raspberrypi.org/documentation/configuration/config-txt/gpio.md that you can set up other pins to start high by adding something like this but with any gpio you chose to the /boot/config.txt file gpio=12=op,dh And to make it low when the raspy is off you can modifying the lipopi.py starting the ping in output mode and turning it low before shutdown, something like this GPIO.setup(12, GPIO.OUT) GPIO.output(12, False) The lipopi.py does a GPIO.cleanup() but this still let some voltage in the pin, so turning the pin to low before is needed For me this works fine, but only works if you power off by using the button or with the low battery signal

NeonHorizon commented 6 years ago

Thats worth knowing, thanks!