Skip to content

Instantly share code, notes, and snippets.

@noopkat
Created February 16, 2017 18:18
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/0718462c34326f4041c16aabf0133e12 to your computer and use it in GitHub Desktop.
Save noopkat/0718462c34326f4041c16aabf0133e12 to your computer and use it in GitHub Desktop.
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