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 @@
import RPi.GPIO as g
import time
import threading
import sys
import Adafruit_CharLCD as LCD
......@@ -114,7 +115,7 @@ class Modes:
def main():
global state, pins
last_time = 0
mode = Modes.button
mode = Modes.button if (sys.argv + [False])[1] else Modes.flask_raise
while True:
if state == States.no_hafv:
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