-
-
Save ceremcem/9607043bc6e49ec5b8e63fc4c060e88a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require! 'node-hid': HID | |
console.log HID.devices! | |
device = new HID.HID 0, 1 | |
device.on \data, (data) -> | |
console.log "data: ", data, "string: ", data.to-string! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment