Advertisement
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.setup(6, GPIO.OUT)
- print("HIGH")
- GPIO.output(6, GPIO.HIGH)
- time.sleep(2000/1000000.0)
- print("LOW")
- GPIO.output(6, GPIO.LOW)
- GPIO.cleanup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement