Skip to content

Instantly share code, notes, and snippets.

@noopkat noopkat/demo.js
Created Feb 16, 2017

Embed
What would you like to do?
pizzagirl example
const avrpizza = require('avr-pizza');
const Avrgirl = require('avrgirl-arduino');
const package = {
sketch: 'blink.ino',
board: 'uno'
};
const avrgirl = new Avrgirl({
board: 'uno',
debug: true
});
avrpizza.compile(package, function(error, hex) {
if (error) return console.log(error);
console.log(hex);
avrgirl.flash(hex, function(error) {
if (error) return console.log(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.