Skip to content
Snippets Groups Projects
Commit c3b64a43 authored by SiccoColijn's avatar SiccoColijn
Browse files

This worked for making the wheels spin

parent 5a5a5f8f
No related branches found
No related tags found
No related merge requests found
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(12, GPIO.OUT)
GPIO.setup(20, GPIO.OUT)
GPIO.setup(26, GPIO.OUT)
GPIO.setup(13, GPIO.OUT)
print(GPIO.VERSION)
pRf = GPIO.PWM(20, 50)
pRb = GPIO.PWM(26, 50)
pLf = GPIO.PWM(12, 50)
pLb = GPIO.PWM(13, 50)
pRf.start(100)
input("pRf")
pRf.stop()
pRb.start(100)
input("pRb")
pRb.stop()
pLb.start(100)
input("pLb")
pLb.stop()
pLf.start(100)
input("pLf")
pLf.stop()
GPIO.cleanup()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment