noopkat / avr-pizza Goto Github PK
View Code? Open in Web Editor NEW:cloud: :pizza: bespoke, artisinal, sketch Precompiler In ZZee Air
Home Page: http://avr.pizza
License: MIT License
:cloud: :pizza: bespoke, artisinal, sketch Precompiler In ZZee Air
Home Page: http://avr.pizza
License: MIT License
This is a cool project, but I'd like to be able to run my own instance of avr.pizza, especially since it seems to be down right now. Do you have the server-side code anywhere?
avr-pizza module can't work now.
Hi,
The concept of your project is really nice, ( thanks to google for showing me the way), and as i'm learning nodejs at the moment it's a double point!
It works great but still I met a small problem when using CLI , the libraries can't be read because of forEach() in /bin/cli.js
When I type this command :
avr-pizza compile -s /home/ed/Arduino/NodeManager/NodeManager.ino -l /home/ed/Arduino/libraries -a 'pro' -o ~/test -b /home/ed/arduino-1.8.3
I get the output :
options.libraries.forEach(function(l, i) {
^
TypeError: options.libraries.forEach is not a function
at compile (/home/ed/.nvm/versions/node/v6.0.0/lib/node_modules/avr-pizza/bin/cli.js:21:21)
at handleInput (/home/ed/.nvm/versions/node/v6.0.0/lib/node_modules/avr-pizza/bin/cli.js:68:9)
at Object. (/home/ed/.nvm/versions/node/v6.0.0/lib/node_modules/avr-pizza/bin/cli.js:89:1)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:159:18)
Do you have any idea which is the reason of this problem ?
A problem with Node version ?
Error when running cli.js on Mac and Linux as follows, due to line break type CRLF of this cli.js file.
$ ./cli.js help
env: node\r: No such file or directory
When CRLF was changed to LF , cli.js worked.
@noopkat When I executed avr-pizza compile -s blink.ino -a mega -b /Applications/Arduino.app
, I got an error.
{ Error: Command failed: /Applications/Arduino.app/Contents/Java/arduino-builder -compile -hardware="/Applications/Arduino.app/Contents/Java/hardware" -tools="/Applications/Arduino.app/Contents/Java/hardware/tools" -tools="/Applications/Arduino.app/Contents/Java/tools-builder" -fqbn="arduino:avr:mega" -built-in-libraries="/Applications/Arduino.app/Contents/Java/libraries" -ide-version="10609" -build-path="/Users/focalhot/.avrpizza/tmp/c2f60010-4877-11e8-bf06-159d66d7d508" -debug-level="10" "/Users/focalhot/Downloads/app/blink.ino"
avr-g++: error: missing device or architecture after '-mmcu='
exit status 1
*exec.ExitError exit status 1
/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/i18n/errors.go:19 (0xb3c5f)
/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder_utils/utils.go:375 (0x109362)
/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/gcc_preproc_runner.go:63 (0x9d8c2)
/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_add_prototypes.go:56 (0x9819e)
/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:191 (0x976ad)
/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:124 (0x9702c)
/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:222 (0x97c95)
/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/arduino-builder/main.go:338 (0x379c)
/home/jenkins/go/src/runtime/proc.go:183 (0x2c0a4)
/home/jenkins/go/src/runtime/asm_amd64.s:2086 (0x582d1)
at ChildProcess.exithandler (child_process.js:273:12)
at ChildProcess.emit (events.js:180:13)
at maybeClose (internal/child_process.js:936:16)
at Socket.stream.socket.on (internal/child_process.js:353:11)
at Socket.emit (events.js:180:13)
at Pipe._handle.close [as _onclose] (net.js:541:12)
killed: false,
code: 1,
signal: null,
cmd: '/Applications/Arduino.app/Contents/Java/arduino-builder -compile -hardware="/Applications/Arduino.app/Contents/Java/hardware" -tools="/Applications/Arduino.app/Contents/Java/hardware/tools" -tools="/Applications/Arduino.app/Contents/Java/tools-builder" -fqbn="arduino:avr:mega" -built-in-libraries="/Applications/Arduino.app/Contents/Java/libraries" -ide-version="10609" -build-path="/Users/focalhot/.avrpizza/tmp/c2f60010-4877-11e8-bf06-159d66d7d508" -debug-level="10" "/Users/focalhot/Downloads/app/blink.ino"' }
My OS / Arduino IDE version
macOS 10.13.3
Arduino IDE 1.8.5
I ran avr-pizza compile -s arduinoEcho/arduinoEcho.ino -a uno
and got a file in the current directory called arduinoEco.ino that seemed to be the .hex
file. I would had expected arduinoEcho.hex
or output to standard output.
This was confusing me for a bit, with the cli -o
is meant for a directory. I was trying to save the output in a file. The docs say -o <output path>
and since a path could be a file or a directory I got confused. Having it accept either would be perfect.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.