Skip to content

Commit afd454d

Browse files
authored
Merge pull request #59 from Open-STEM/MicroPython1.21Fixes
Motor fixes for v1.21
2 parents d40e95e + 8060105 commit afd454d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

XRPLib/motor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class Motor:
88
def __init__(self, direction_pin: int, speed_pin: int, flip_dir:bool=False):
99
self._dirPin = Pin(direction_pin, Pin.OUT)
1010
self._speedPin = PWM(Pin(speed_pin, Pin.OUT))
11+
self._speedPin.freq(50)
1112
self.flip_dir = flip_dir
1213
self._MAX_PWM = 65534 # Motor holds when actually at full power
1314

0 commit comments

Comments
 (0)