Share us



stats

RSS feeds

Raspberry Pi - LED Turn On/Off and BlinkingPrint

Blinking LED is basis any programming. This is complete code for blinking LED, turn ON or turn OFF LED on GPIO 7. The program is written in python language and you find complete tutorial.

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

No Comments have been Posted.

Post Comment

Please Login to Post a Comment.