4646c7d7a6
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
22 lines
328 B
Python
22 lines
328 B
Python
'''
|
|
Created on Dec 19, 2016
|
|
|
|
@author: klaehn
|
|
'''
|
|
import time
|
|
import gate
|
|
|
|
def main():
|
|
gate_state = gate.Gate()
|
|
try:
|
|
while True:
|
|
gate_state.poll()
|
|
time.sleep(0.1)
|
|
|
|
except KeyboardInterrupt:
|
|
print "key exit"
|
|
return None
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|