From 85f7c46c4e57875077bbdb3d8b1fde11de3b68e5 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 14 Sep 2025 19:09:52 +0200 Subject: [PATCH] aggiunta cartella di test leo con ruote.py --- leo/ruote.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 leo/ruote.py diff --git a/leo/ruote.py b/leo/ruote.py new file mode 100644 index 0000000..a47775f --- /dev/null +++ b/leo/ruote.py @@ -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)