aggiunta cartella di test leo con ruote.py

This commit is contained in:
leo 2025-09-14 19:09:52 +02:00
parent 57c1443bb1
commit 85f7c46c4e

13
leo/ruote.py Normal file
View 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)