changed to /dev/pentabuzzer
i wasnt able to automatically allow user access
This commit is contained in:
parent
d1f86d6648
commit
aa9a56e623
|
@ -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"
|
|
@ -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 });
|
||||
|
|
Loading…
Reference in New Issue