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
{{ message }}
This repository was archived by the owner on Jul 3, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 3, 2020. It is now read-only.
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 :-)
Activity
piranna commentedon Dec 13, 2016
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
libusblibrary, 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 :-)