diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-06-10 14:01:52 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-06-10 14:03:41 +0200 |
commit | ffea9d997ad36e7a8a42cd2384ab314a77d623f0 (patch) | |
tree | 8b87abb1f9870b1b6bb2a286ce8129a69a11bc18 /rpi2/app/__main__.py | |
parent | 0cd5f1748f0121cd16876da8e5be639743774b3b (diff) | |
download | code-ffea9d997ad36e7a8a42cd2384ab314a77d623f0.tar.gz |
Initial commit of serial communication
Diffstat (limited to 'rpi2/app/__main__.py')
-rw-r--r-- | rpi2/app/__main__.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rpi2/app/__main__.py b/rpi2/app/__main__.py new file mode 100644 index 0000000..196c817 --- /dev/null +++ b/rpi2/app/__main__.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python2 +import logging +import glob +import os.path +import serial +import termios +import time +from threading import Thread + +from . import comm_arduino + +def main(path): + # TODO consider using a thread for serial I/O and route finding + comm_arduino.main() + +if __name__ == '__main__': + logging.basicConfig(format='%(asctime)s: %(message)s', level=logging.DEBUG) + main(); |