implemented loop

This commit is contained in:
thatsn0tmysite 2023-11-24 23:24:03 +01:00
parent 1d8d9cb870
commit 2f9b1894d8
2 changed files with 8 additions and 8 deletions

11
main.py
View File

@ -159,7 +159,7 @@ def setup_gpio():
def all_pins_off(pin): def all_pins_off(pin):
for i in NUM_PINS: for i in len(motorPins):
pin.value(0) pin.value(0)
@ -191,5 +191,10 @@ def toggle_mode():
pass pass
def loop(): while True:
pass if current_mode == REWINDING:
if(totalsteps<1 and autostop):
print("Ending the rewind and stopping")
current_mode = STOPPED
all_pins_off()
total_seconds = 0.0

View File

@ -1,12 +1,7 @@
{ {
"folders": [ "folders": [
{ {
"name": "Startracker",
"path": "." "path": "."
},
{
"name": "serial://dev/ttyUSB0",
"uri": "serial://%2fdev%2fttyusb0/"
} }
] ]
} }