Build, upload and monitor arduino sketches from zsh. Reuses .vscode/arduino.json if available else you can set env vars.
- In a sketch folder, run
ar_build
- If you have
.vscode/arduino.json, then all flags - espfqbnis pulled in from there.
- Setting compile time vars
ar_build stm32-nrf24tx02.ino --build-properties='compiler.cpp.extra_flags=-DDEBUG
- You can just run
ar_uploaddirectly - if a binary (AR_BIN) isn't set, then it will build & upload
- to force build, use
ar_build; ar_upload
- arduino-cli
jq- sudo apt install jq
zplug "raghur/zsh-arduino"
- clone this somewhere in your $FPATH
- Source
plugin.zshfrom your startup scripts - In your sketch folder, following are available
ar_build,ar_upload,ar_env,ar_serial