commit 07c565b782c82cbea11aa0518100d5390eaaac28
parent 95045223a4e50878241192964670711f6150bc34
Author: 諒太 林 <ryouturn@gmail.com>
Date: Sat, 31 Aug 2024 03:07:38 +0900
update test
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test.py b/test.py
@@ -21,11 +21,14 @@ GPIO.setup(dircPin, GPIO.OUT) # 3:Dir
GPIO.setup(stepPin, GPIO.OUT) # 4:Step
def main():
+ print("escapeR")
+ GPIO.output(dircPin, 0)
for num in range(0,10000):
GPIO.output(stepPin, 1)
time.sleep(0.001)
GPIO.output(stepPin, 0)
time.sleep(0.001)
+ time.sleep(1)
try:
@@ -34,5 +37,4 @@ except KeyboardInterrupt:
print('interrupted!')
GPIO.cleanup()
-cap.release()
cv2.destroyAllWindows()
\ No newline at end of file