Explicitly use pin factories for servo/motor.
This commit is contained in:
@@ -17,7 +17,7 @@ class Motor:
|
||||
if self._motor_pin is None:
|
||||
print("Motor pin number is not set.")
|
||||
return
|
||||
self._servo = Servo(self._motor_pin)
|
||||
self._servo = Servo(self._motor_pin, pin_factory=Device.pin_factory)
|
||||
|
||||
def set_throttle(self, throttle):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user