Mercurial > ~darius > hgwebdir.cgi > vanlogger
diff vanlogger.py @ 21:65be58857ed4
Move to onboard UART.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Wed, 14 Mar 2018 00:23:52 +1030 |
parents | f77cc29d0b47 |
children | efe1954da8ca |
line wrap: on
line diff
--- a/vanlogger.py Tue Feb 27 16:12:36 2018 +1030 +++ b/vanlogger.py Wed Mar 14 00:23:52 2018 +1030 @@ -172,7 +172,7 @@ dbh = sqlite3.connect('/home/pi/vanlogger/log.db') cur = dbh.cursor() create(cur) - s = serial.Serial('/dev/ttyUSB0', 2400, parity='E') + s = serial.Serial('/dev/ttyS0', 2400, parity='E') s.timeout = 0.2 p = epro.Processor()