How it works:
https://www.youtube.com/watch?v=Nu3YGMoXORI
This project helps to track changes in your sketch file, automatically updates firmware, starts serial monitor and notices you by sound if error occurs. When changes have been saved:
- Close previous Serial Monitor
- Compile sketch file
- Upload sketch to arduino
- Start new Serial Monitor
- Wait for new changes
Download Arduino IDE from here https://www.arduino.cc/en/Main/Software
$ ln -s path/to/arduino/folder/arduino /usr/bin/arduino
$ apt-get install nodejs
$ npm install --global gulp-cli
Go to project folder and run
$ npm install
You need to specify at least your port and arduino type in gulpfile.js
{
projectName: 'firmware',
port: '/dev/ttyUSB0',
speed: 9600,
package: 'arduino',
architecture: 'avr',
board: 'nano',
cpu: 'atmega328',
verbose: true,
noticeOnSuccess: true,
noticeOnFail: true
}
$ gulp
Congratz we are done. Now you can make changes in src/firmware/firmware.ino
file and see how it works.