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 &
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.