Mercurial > code > home > repos > homeauto
comparison service/theaterArduino/theaterArduino.py @ 823:0aafd40e4afc
move more ports to use /dev/serial/by-id/
Ignore-this: 4d9bc18902dfe08897c3e03579c87b23
darcs-hash:20111204030320-312f9-da93888bb0e3b2bc898eb34f3126706d0ac3aefa.gz
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 03 Dec 2011 19:03:20 -0800 |
parents | bebb8f7c5a3e |
children |
comparison
equal
deleted
inserted
replaced
822:b1c92ee20ff4 | 823:0aafd40e4afc |
---|---|
127 self.lastState[pin] = current | 127 self.lastState[pin] = current |
128 | 128 |
129 if __name__ == '__main__': | 129 if __name__ == '__main__': |
130 | 130 |
131 config = { # to be read from a file | 131 config = { # to be read from a file |
132 'arduinoPort': '/dev/ttyUSB0', | 132 'arduinoPort': '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0', |
133 'servePort' : 9056, | 133 'servePort' : 9056, |
134 'pollFrequency' : 20, | 134 'pollFrequency' : 20, |
135 'post' : 'http://bang:9069/pinChange', | 135 'post' : 'http://bang:9069/pinChange', |
136 'boardName' : 'theater', # gets sent with updates | 136 'boardName' : 'theater', # gets sent with updates |
137 'watchPins' : [9, 10], # or 'allInput' (not yet working) | 137 'watchPins' : [9, 10], # or 'allInput' (not yet working) |