Custom scripts for arduinocli, to make compiling / uploading / serial monitor easier, so the dev port and FQBN do not have to be specified every time.
- Ensure putty is installed.
- Place the scripts in a directory ardcli/ that is in your path (e.g $HOME/bin/ardcli/).
To permanently add a directory to path:
export PATH=$PATH:/home/user/bin/ardcli/ - The FQBN (default is arduino:avr:mega) will have to be updated based on the board you are using. A script set-fqbn has been provided for ease of use.
set-fqbn arduino:avr:uno
- The device port (default is /dev/ttyACM0) will have to be updated too. A script set-port has been provided for ease of use. If you're not on Linux, replace tty in the script to the appropriate terminal, e.g pts/cu/acm.
set-port /dev/ttyUSB0
All scripts are used in the same way, for example:
ard-cmp blink
Where blink/blink.ino is the sketch you want to compile.
| Script | Use |
|---|---|
| ard-cmp | Compiles the sketch |
| ard-upl | Uploads the sketch to device |
| ard-do | Compiles and uploads the sketch |
| ard-do-ser | Compiles and uploads sketch, and opens serial monitor. Uses putty |
| ard-ser | Opens serial port |