comparison service/theaterArduino/theaterArduino.py @ 18:84af13435de7

move more ports to use /dev/serial/by-id/ Ignore-this: 4d9bc18902dfe08897c3e03579c87b23
author drewp@bigasterisk.com
date Sat, 03 Dec 2011 19:03:20 -0800
parents be855a111619
children
comparison
equal deleted inserted replaced
17:d6c2b9b87f7b 18:84af13435de7
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)