Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import RPi.GPIO as GPIO
- # Use BCM GPIO references
- # instead of physical pin numbers
- GPIO.setmode(GPIO.BCM)
- StepCounter = 0
- WaitTime = 0.01
- while True:
- GPIO.output(GPIO.26, False)
- GPIO.output(GPIO.18, True)
- sleep(WaitTime)
- GPIO.output(GPIO.18, False)
- GPIO.output(GPIO.22, True)
- sleep(WaitTime)
- GPIO.output(GPIO.22, False)
- GPIO.output(GPIO.24, True)
- sleep(WaitTime)
- GPIO.output(GPIO.24, False)
- GPIO.output(GPIO.26, True)
- sleep(WaitTime)
Advertisement
Add Comment
Please, Sign In to add comment