commit 3f17d8fc91803def8e2e6624d2b7b2df4f6d9fe8
parent 636634e5e96c156bc8c209a8697364d4b597da28
Author: 諒太 林 <ryouturn@gmail.com>
Date: Sat, 31 Aug 2024 08:18:27 +0900
node
Diffstat:
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/test.py b/test.py
@@ -24,17 +24,18 @@ def main():
print("escapeR")
GPIO.output(dircPin, 0)
for num in range(0,1000):
- GPIO.output(stepPin, 1)
- time.sleep(0.001)
- GPIO.output(stepPin, 0)
- time.sleep(0.001)
+ GPIO.output(stepPin, 1)
+ time.sleep(0.001)
+ GPIO.output(stepPin, 0)
+ time.sleep(0.001)
time.sleep(1)
try:
- main()
+ main()
except KeyboardInterrupt:
- print('interrupted!')
- GPIO.cleanup()
+ print('interrupted!')
+ GPIO.cleanup()
+
GPIO.cleanup()
cv2.destroyAllWindows()
\ No newline at end of file