Samstag, 11. Oktober 2014
05_Python_&_LED (erledigt)
http://rasppiprojekte.blogger.de/stories/2442344/

0. Bild
-

1. Projektstatus
- erledigt
2. Teilprojekte
- 03
3. Hardware

4. Pin-Belegung
- Pin 1; 3,3 Volt (+)
- Pin 11; GPIO 17 (-)
5. Code
gpio export 17 out
gpio -g write 17 0 --> licht an
gpio -g write 17 1 --> licht aus
//umschalten in den Lesemodusm
gpio export 17 in
gpio -g read 17 --> gleich 1 licht aus, gleich 0 licht an

05_quellcode (txt, 0 KB)

python-Script
/Documents/nano 05.py
sudo python 05.py
6. Anmerkung
.