You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And here is this new issue starts, cannot move, but in can fire.
$ sudo node keyboard.js
TENX ROCKET LAUNCHER DEMO
Press Cursor Keys to move camera
Press f to Fire
Press q to quit
got "keypress" left
(node:22752) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
The text was updated successfully, but these errors were encountered:
Looking into rasperry pi install I found the following solution.
$ git clone https://github.com/RogerHardiman/tenx_usb_missile_launcher.git
$ cd tenx_usb_missile_launcher/
$ sudo apt-get update && sudo apt-get upgrade -y
$ sudo apt-get install libusb-1.0-0-dev libudev-dev
The libusb and libudev seem to be needed to get the usb.js installed.
To solve dependencies I installed yarn (might be overkill)
https://classic.yarnpkg.com/en/docs/install/#debian-stable
$ yarn
$ yarn add usb
$ yard add keypress
$ nano keyboard.js
To change the code as reflected in Issue#1
And here is this new issue starts, cannot move, but in can fire.
$ sudo node keyboard.js
TENX ROCKET LAUNCHER DEMO
Press Cursor Keys to move camera
Press f to Fire
Press q to quit
got "keypress" left
(node:22752) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
The text was updated successfully, but these errors were encountered: