Skip to content

Instantly share code, notes, and snippets.

@noopkat noopkat/flash.js
Last active Dec 1, 2016

What would you like to do?
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) {'was there an error?', !!error, error);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.