In this video , you will learn how to interface LED with Raspberry Pi.
You will learn how to use python program to control Raspberry pi pins.
You will get basic idea of python language and its IDE.
I also explained how to identify Raspberry pi pins functionality using Linux Terminal.
I explained each and every line from program so that you wont miss any single logic.
You will learn how to add python package into program.
You will get idea about while loop syntax.
Program:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
LED = 7
GPIO.setup(LED ,GPIO.OUT)
while(1):
print "LED on"
GPIO.output(LED ,GPIO.HIGH)
time.sleep(1)
print "LED off"
GPIO.output(LED ,GPIO.LOW)
time.sleep(1)