π Cross-Platform Arduino IDE in nodeJS
$ npm install --save arduino-node
const arduino = require('arduino-node');
const arduLatest = arduino({path: 'bin'});
arduLatest.run(['--verify', './your-project/your-project.ino'], (err, out) => {
if (err) {
console.log(err);
return;
}
console.log(out.stdout);
});
const ardu180 = arduino({path: 'bin', version: '1.8.0'});
ardu180.run(['--verify', './your-project/your-project.ino'], (err, out) => {
if (err) {
console.log(err);
return;
}
console.log(out.stdout);
});
Creates a new arduino
instance.
Type: object
Type: string
Default: 'latest'
The Arduino IDE version to use.
Type: string
Default: 'bin'
The path where Arduino IDE will resides.
Runs the Arduino IDE binary. If the binary is not loaded it will also load it.
Type: array
Default: []
An array of arguments to pass to the Arduino IDE.
Type: function
Returns a possible error and the output object.
Runs the search for the Arduino IDE binary. If no binary is found it will download it from arduino-version
.
Type: function
Removes downloaded Arduino IDE binary, if present.
Type: function
Returns the full path to the Arduino IDE binary.
Returns the full path where the Arduino IDE will downloaded to.
- Simone Primarosa - simonepri
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details.