Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

More Hardware Devices #137

Open
RossComputerGuy opened this issue Dec 13, 2016 · 1 comment
Open

More Hardware Devices #137

RossComputerGuy opened this issue Dec 13, 2016 · 1 comment

Comments

@RossComputerGuy
Copy link

Is there a way to access these devices:

  • bluetooth
  • usb
  • speakers
  • headphones
  • printers
@piranna
Copy link

piranna commented Dec 13, 2016

Is there a way to access these devices:

As Linus Tordvalds said, "Do you pine for the nice days of minix-1.1, when men were men and wrote their own device drivers?" ;-)

By the way, from your list, speakers and headphones are the (almost?) the same from a driver/computer perspective, and probably the most simple ones to develop because on their most simple behaviour it's just a matter of read and write on some specific ports, specially for the internal speaker/buzzer (it was a college practice for me, but almost no computer have it these days).
The other ones are probably too much complex to write a driver from scratch, specially the USB protocol. Printers were easy to program when they used a parallel port (the same thing: just poke some port address), but today all printers are USB and no computer have a parallel port these days. Maybe you could have some luck with a serial port and program its UART...

Said that, there are bindings for Node.js for libusb library, but if you are into the mood of write a pure Javascript USB library (at least on a basic level, that's it, support a TTY-to-USB adapter so it can be connected to an Arduino board) then go for it :-)

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

No branches or pull requests

2 participants