Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Raspberry Pi install #3

Open
amunizp opened this issue Dec 20, 2020 · 1 comment
Open

Issues with Raspberry Pi install #3

amunizp opened this issue Dec 20, 2020 · 1 comment

Comments

@amunizp
Copy link

amunizp commented Dec 20, 2020

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.

@amunizp
Copy link
Author

amunizp commented Dec 21, 2020

This final issue is fixed by changing all the references to Buffer to Buffer.from .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant