commit 3f8f1477f1d879ef9005f03a2e3417f6abe8fa8d
parent e6de4403269c4abad7fa22c8617e5fbe8b80686a
Author: 諒太 林 <ryouturn@gmail.com>
Date: Fri, 30 Aug 2024 18:33:18 +0900
update test
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/test.py b/test.py
@@ -19,7 +19,12 @@ print("setup was completed")
def main():
GPIO.output(enabPin, 1)
print("enable setted 1")
- escapeR
+ for i in range(0,200):
+ print(i)
+ GPIO.output(stepPin, 1)
+ time.sleep(0.001)
+ GPIO.output(stepPin, 0)
+ time.sleep(0.001)
GPIO.cleanup()
#逆かもしれない
@@ -31,6 +36,7 @@ def escapeR():
GPIO.output(stepPin, 0)
time.sleep(0.001)
time.sleep(1)
+
def escapeL():
GPIO.output(dircPin, 1)
for i in range(0,200):