Share us

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

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:

Original program:

No Comments have been Posted.

Post Comment

Please Login to Post a Comment.