Mercurial > ~darius > hgwebdir.cgi > vanlogger
comparison 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 |
comparison
equal
deleted
inserted
replaced
20:d4356465dce1 | 21:65be58857ed4 |
---|---|
170 | 170 |
171 def main(): | 171 def main(): |
172 dbh = sqlite3.connect('/home/pi/vanlogger/log.db') | 172 dbh = sqlite3.connect('/home/pi/vanlogger/log.db') |
173 cur = dbh.cursor() | 173 cur = dbh.cursor() |
174 create(cur) | 174 create(cur) |
175 s = serial.Serial('/dev/ttyUSB0', 2400, parity='E') | 175 s = serial.Serial('/dev/ttyS0', 2400, parity='E') |
176 s.timeout = 0.2 | 176 s.timeout = 0.2 |
177 | 177 |
178 p = epro.Processor() | 178 p = epro.Processor() |
179 ips = giant.GiantIPS() | 179 ips = giant.GiantIPS() |
180 | 180 |