commit b8dfbe0a3b928781b6f7651db242d1d9e57a7c88
parent 17e8ca0de08df591950eb02ffa1cf116f7c5891b
Author: 諒太 林 <ryouturn@gmail.com>
Date: Fri, 30 Aug 2024 20:51:32 +0900
update test
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/test.py b/test.py
@@ -10,7 +10,7 @@ stepPin = 22
dircPin = 17
enabPin = 23
-camLimit = 0
+camLimit = 5
#GPIO.setup(17, GPIO.OUT)#17:MS1
#GPIO.setup(27, GPIO.OUT)#27:MS2
@@ -26,9 +26,7 @@ def main():
print(count)
if count[0] >= camLimit:
- if count[1] < camLimit:
- escapeR
- elif count[0] > count[1]:
+ if count[0] > count[1]:
escapeR
else:
escapeL