mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-02-01 22:26:14 +00:00
Add documentation for Motor, Robot and RyanteckRobot
This commit is contained in:
@@ -256,14 +256,14 @@ class Motor(object):
|
||||
|
||||
def forward(self):
|
||||
"""
|
||||
Turn the motor on, forwards
|
||||
Drive the motor forwards
|
||||
"""
|
||||
self._forward.on()
|
||||
self._backward.off()
|
||||
|
||||
def backward(self):
|
||||
"""
|
||||
Turn the motor on, backwards
|
||||
Drive the motor backwards
|
||||
"""
|
||||
self._backward.on()
|
||||
self._forward.off()
|
||||
|
||||
Reference in New Issue
Block a user