@dawee/avrgirl-arduino
Version:
A NodeJS library for flashing compiled sketch files to Arduino microcontroller boards.
24 lines (20 loc) • 505 B
JavaScript
var Avrgirl = require('../../avrgirl-arduino');
var board = {
name: 'micro',
baud: 57600,
signature: new Buffer([0x43, 0x41, 0x54, 0x45, 0x52, 0x49, 0x4e]),
productId: ['0x0037', '0x8037', '0x0036'],
protocol: 'avr109'
};
var avrgirl = new Avrgirl({
board: board,
debug: true
});
var hex = __dirname + '/../../junk/hex/micro/Blink.cpp.hex';
avrgirl.flash(hex, function(error) {
if (error) {
console.error(error);
} else {
console.info('done.');
}
});