With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
A 1 K resistor connected between the input pin and 3.3 V power supply will eliminate false triggering. Highly recommended.
Note that there should be an '&' symbol at the end of the line calling your script:/home/pi/.off_button.py &Without that the terminal will be captured by your script, and will never return.
Note: The resistor has to be connected to +3.3 volts, not 5 volts
It may be because the '&' symbol at the end of the line calling your script is missing: /home/pi/.off_button.py &
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.