...
 
Commits (2)
#!/usr/bin/env python2
from setuptools import setup
setup(name = "time_machine",
version = "0.1",
author = "Hugo Hornquist",
author_email = "hugo@lysator.liu.se",
description = "A program for measuring times.",
license = "MIT",
url = "https://git.lysator.liu.se/hugo/time-machine",
packages = ["time_machine"],
entry_points = {
"console_scripts": [
"time-machine = time_machine.machine:main"
]
}
)
name = "time_machine"
......@@ -109,7 +109,8 @@ def wait_btn():
return g.wait_for_edge(btn_pin, g.RISING, bouncetime=500)
#g.wait_for_edge(btn_pin, g.RISING)
if __name__ == "__main__":
def main():
global state, pins
while True:
if state == States.no_hafv:
print
......@@ -149,3 +150,6 @@ if __name__ == "__main__":
lcd_info("Avvakta")
state = States.no_hafv
time.sleep(1)
if __name__ == "__main__":
main()