Skip to content

Instantly share code, notes, and snippets.

View sebirdman's full-sized avatar

Stephen Bird sebirdman

  • Boxcrab Studios
View GitHub Profile
var usb = require('usb');
var device = usb.findByIds(0x24f0, 0x2020);
device.open();
const dummy = Array.of(64).fill(0xFF);
let dummyBuffer = Buffer(dummy)
device.controlTransfer(0x21, 0x09, 0x03, 0x02, dummyBuffer, (e, data) => {