aggiunta cartella di test leo con ruote.py
This commit is contained in:
parent
57c1443bb1
commit
85f7c46c4e
1 changed files with 13 additions and 0 deletions
13
leo/ruote.py
Normal file
13
leo/ruote.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from pybricks.parameters import Port, Stop
|
||||
from pybricks.pupdevices import Motor
|
||||
from pybricks.tools import wait
|
||||
|
||||
mDestra = Motor(Port.A)
|
||||
mSinistra = Motor(Port.B)
|
||||
|
||||
mSinistra.run_angle(1000, 360, then=Stop.HOLD, wait=False)
|
||||
mDestra.run_angle(1000, 360, then=Stop.HOLD, wait=False)
|
||||
|
||||
|
||||
while not (mSinistra.done() and mDestra.done()):
|
||||
wait(10)
|
||||
Loading…
Add table
Reference in a new issue