Skip to content

Instantly share code, notes, and snippets.

@noopkat
Last active December 1, 2016 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noopkat/abab0d699b3325bd3976c70f9792e877 to your computer and use it in GitHub Desktop.
Save noopkat/abab0d699b3325bd3976c70f9792e877 to your computer and use it in GitHub Desktop.
lilypadUSB custom board flashing example
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