- import RPi.GPIO as GPIO
- import time
- # blinking function
- def blink(pin):
- GPIO.output(pin,GPIO.HIGH)
- time.sleep(1)
- GPIO.output(pin,GPIO.LOW)
- time.sleep(1)
- return
- # to use Raspberry Pi board pin numbers
- GPIO.setmode(GPIO.BOARD)
- # set up GPIO output channel
- GPIO.setup(11, GPIO.OUT)
- # blink GPIO17 50 times
- for i in range(0,50):
- blink(11)
- GPIO.cleanup()
embedded system,Arduino,Raspberry pi,ARM7,MM32,STM32,PIC and Python,Django,Datascience and web development
Saturday, April 12, 2014
LED blink code for raspberry pi
Subscribe to:
Post Comments (Atom)
-
After doing different projects on different micro controller i started working with Quectel EC25 driver( 4g LTE) and mc60 and m66. EC2...
-
this is the post explains about the how to connect the arduino with the servo motor. mainly servo motor having 3 pins 1.5v supply 2.gnd...
No comments:
Post a Comment