Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import RPi.GPIO as GPIO
- import time
- try:
- GPIO.setmode(GPIO.BCM)
- GPIO.setup(21, GPIO.out)
- while (1):
- GPIO.output(21, True)
- except Exception as e : print(e)
- finally:
- GPIO.cleanup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement