BrickUp API Service for Docker version.

init.js 545B

12345678910111213141516171819202122232425
  1. var Builder = require('../');
  2. var builder = new Builder('./', {
  3. 'main.ino': '#include <stdio.h>\n\nvoid setup()\n{\n\n}\n\n\nvoid loop()\n{\n\n}'
  4. });
  5. console.log('Initialize');
  6. builder.init(function() {
  7. console.log('Scanning libraries');
  8. builder.scanLibraries(function() {
  9. console.log(builder.libs);
  10. console.log('Generating source files');
  11. builder.generateSources(function() {
  12. builder.generateMakefile(function() {
  13. return;
  14. builder.compile(function(err, hexPath) {
  15. console.log(hexPath);
  16. });
  17. });
  18. });
  19. });
  20. });