updating cassette code
Fixing a minor bug - variable definition before the loop
This commit is contained in:
parent
5275ab1b91
commit
b37cc78c9f
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue