mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Correct Motor usage in recipe
Thanks to Antonio Spadaro for pointing this out
This commit is contained in:
@@ -493,7 +493,7 @@ Spin a :class:`Motor` around forwards and backwards::
|
|||||||
from gpiozero import Motor
|
from gpiozero import Motor
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
motor = Motor(forward=4, back=14)
|
motor = Motor(forward=4, backward=14)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
motor.forward()
|
motor.forward()
|
||||||
|
|||||||
Reference in New Issue
Block a user