changed to /dev/pentabuzzer

i wasnt able to automatically allow user access
This commit is contained in:
john stone 2011-12-13 18:35:17 +01:00
parent d1f86d6648
commit aa9a56e623
2 changed files with 2 additions and 1 deletions

1
10-pentabuzzer.rules Normal file
View File

@ -0,0 +1 @@
SUBSYSTEM=="usb", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", ATTRS{serial}=="A400gqnA", NAME="pentabuzzer", OWNER="john",SYMLINK="serial/by-id/usb-FTDI_FT232R_USB_UART_A400gqnA-if00-port0"

View File

@ -101,7 +101,7 @@ function pushIrcInfo() {
/*
* Buttons
*/
var buzz = new (require('./buzz_iface/node_lib/buzz').Buzz)('/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A400gqnA-if00-port0');
var buzz = new (require('./buzz_iface/node_lib/buzz').Buzz)('/dev/pentabuzzer');
buzz.on('button', function(key) {
console.log({button:key});
sendToFrontend({ buzzer: key });