Raspberry Pi - LED Turn On/Off and Blinking
- December 05 2015
- Raspberry Pi, Cubieboard, Banana Pi, BeagleBone, Orange Pi
- 1679 Reads
- 0 Comments
You have to create file *.py in the home folder.
Copy this code:
This command is used for running blink.py:
Control program is easy. You will have to write number 1- Turn ON LED, 2 -Blinking LED a 3 - Turn OFF LED.
Choice 2 - You have to specify number repeating and blinking period.
If you turn ON LED and run program again, appears this message:
This message is no problem, because only highlights that the GPIO 7 is used.
Source of:
Pinout of Raspberry Pi:
https://projects.drogon.net/raspberry-pi/wiringpi/pins/
Original program:
http://www.thirdeyevis.com/pi-page-2.php