Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import RPi.GPIO as GPIO
- import time
- GPIO.setmode(GPIO.BCM)
- GPIO.setwarnings(False)
- crvena=18
- GPIO.setup(crvena, GPIO.OUT)
- try:
- while(True):
- GPIO.output(crvena, GPIO.HIGH)#Ovde palimo crvenu diodu
- time.sleep(0.5)
- GPIO.output(crvena,GPIO.LOW)
- time.sleep(0.5)
- except KeyboardInterrupt:
- GPIO.cleanup()
Advertisement
Add Comment
Please, Sign In to add comment