Library for flashing BootloadHID devices
NodeJS implementation of https://www.obdev.at/products/vusb/bootloadhid.html.
$ npm install bootload-hid
List available devices
const BootloadHID = require('bootload-hid');
BootloadHID.list((err, devices) => {
console.log('devices', devices);
});
Flash the first found device
const BootloadHID = require('bootload-hid');
const loader = new BootloadHID({
debug: true,
manualReset: false,
});
// GO....
loader.flash(args.file, (error) => {
if (error) {
console.error(error.message);
} else {
console.info('done.');
}
});