Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added HID/ia32/0.10/HID.node
Binary file not shown.
Binary file added HID/ia32/0.11/HID.node
Binary file not shown.
Binary file added HID/ia32/0.8/HID.node
Binary file not shown.
Binary file added HID/ia32/0.9/HID.node
Binary file not shown.
14 changes: 14 additions & 0 deletions HID/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Attempt to load each of the available .node files for the current processor
// architecture until one succeeds, or throw an exception if none do.
var versions = require("fs").readdirSync(__dirname + "\\" + process.arch);
if (!versions.some(function (version) {
try {
module.exports = require("./" + process.arch + "/" + version + "/HID.node");
return true;
} catch (e) {
return false;
}
})) {
throw new Error("Your processor architecture and node version are not supported");
};

Binary file added HID/x64/0.10/HID.node
Binary file not shown.
Binary file added HID/x64/0.11/HID.node
Binary file not shown.
Binary file added HID/x64/0.8/HID.node
Binary file not shown.
Binary file added HID/x64/0.9/HID.node
Binary file not shown.
2 changes: 1 addition & 1 deletion blinkstick.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var usb = require('./platform/windows/HID.node');
var usb = require("./HID");

var VENDOR_ID = 0x20a0,
PRODUCT_ID = 0x41e5,
Expand Down
Binary file removed platform/windows/HID.node
Binary file not shown.