Skip to content

gordonajajar/Arduinocli-Custom-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduinocli Custom Scripts

Bash

About

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.

Setup

  1. Ensure putty is installed.
  2. 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/
  3. 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
  1. 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

Usage

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

About

Custom bash scripts for convenient usage of arduinocli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages