From e757de7b962f917b74440b6a76d305a51c9f301c Mon Sep 17 00:00:00 2001 From: Alexandre Gobbo Date: Fri, 26 Jul 2019 16:19:16 +0200 Subject: [PATCH] Startup --- script/tweaK.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 script/tweaK.py diff --git a/script/tweaK.py b/script/tweaK.py new file mode 100644 index 0000000..28ab40d --- /dev/null +++ b/script/tweaK.py @@ -0,0 +1,11 @@ + + +def tweak(dev, step): + import ch.psi.pshell.swing.Shell as Shell + while (True): + key=Shell.waitKey(0) + if key == 0x25 : #Left + motor.moveRel(-step) + elif key == 0x27 : #Right + motor.moveRel(step) + \ No newline at end of file