Last active
December 1, 2016 03:44
-
-
Save noopkat/abab0d699b3325bd3976c70f9792e877 to your computer and use it in GitHub Desktop.
lilypadUSB custom board flashing example
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
const Avrgirl = require('avrgirl-arduino'); | |
const lilypad = { | |
name: 'lilypadUSB', | |
baud: 57600, | |
signature: new Buffer([0x43, 0x41, 0x54, 0x45, 0x52, 0x49, 0x4e]), | |
productId: ['0x9207', '0x9208', '0x1B4F'], | |
protocol: 'avr109' | |
}; | |
const avrgirl = new Avrgirl({ | |
board: lilypad, | |
debug: true | |
}); | |
const filename = 'your hex file path'; | |
avrgirl.flash(filename, function (error) { | |
console.info('was there an error?', !!error, error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment