Commit e9957878 authored by Hugo Hörnquist's avatar Hugo Hörnquist

Add cmd line option for choosing mode.

parent df29b164
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
import RPi.GPIO as g import RPi.GPIO as g
import time import time
import threading import threading
import sys
import Adafruit_CharLCD as LCD import Adafruit_CharLCD as LCD
...@@ -114,7 +115,7 @@ class Modes: ...@@ -114,7 +115,7 @@ class Modes:
def main(): def main():
global state, pins global state, pins
last_time = 0 last_time = 0
mode = Modes.button mode = Modes.button if (sys.argv + [False])[1] else Modes.flask_raise
while True: while True:
if state == States.no_hafv: if state == States.no_hafv:
print print
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment