updating cassette code

Fixing a minor bug - variable definition before the loop
This commit is contained in:
BlitzCityDIY 2022-06-24 15:06:32 -04:00
parent 5275ab1b91
commit b37cc78c9f

View file

@ -28,6 +28,8 @@ cassette = motor.DCMotor(pwm_a, pwm_b)
# variables for warble switch
i = 0.4
last_i = 0.4
pos = False
neg = False
while True:
# map range of pot to range of motor speed