hello everyone
I am currently using 0.3BATA RUNE
but I want to use the external button to turn 2+ PI off
I tried to install a lot of ways on the forum, but it was still not a success.
It has been a problem for me for a week.
First of all,
I refer to the:
#636
The following way:
1.
Synch the listing with the repositories:
pacman -Sy
2.
Install python:
pacman -S python
3.
Select gcc from the resulting list. (mine was no.10 on the list):
pacman -S base-devel
4.
wget
https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.8.tar.gz
5.
unzip the tar:
tar -xvzf RPi.GPIO-0.5.8.tar.gz
6.
Install RPi.GPIO:
cd RPi.GPIO-0.5.8
python setup.py install
The above process - the installation is completed
Next, I can't go on... Because I don't know the why script can be executed automatically shutdown - h now < -- this directive defines the button is pressed
I have seen
http://www.forum-raspberrypi.de/Thread-tutorial-hoch-und-runterfahren-mittels-taster-incl-status-led
This information, but unfortunately the beginning of the order: apt-get update sudo is not successful, it is clear that this may not be a viable approach
Also referred to:
http://www.raspberry-pi-geek.com/Archive/2013/01/Adding-an-On-Off-switch-to-your-Raspberry-Pi
Within the code, but also no success
For Linux I am a complete novice.. but I can skillfully master the basis of electronic parts and welding
How do I continue? Please give me a detailed down the operation process. And the control button circuit diagram
Distress in ~ ~
CHANG ANDRE