arduino-run

Crates.ioarduino-run
lib.rsarduino-run
version0.1.2
sourcesrc
created_at2023-07-06 22:32:04.643229
updated_at2024-03-04 21:53:27.694524
descriptionA cargo runner for Arduino boards
homepage
repositoryhttps://github.com/matteocarnelos/arduino-run
max_upload_size
id910323
size30,820
Matteo Carnelos (matteocarnelos)

documentation

README

arduino-run

A cargo runner for Arduino boards

crates.io github

Features

  • Based on arduino-cli
  • Supports all Arduino boards
  • Possibility to open serial monitor after flashing

Installation

  1. Install arduino-cli
  2. Install arduino-run:
    cargo install arduino-run
    

Usage

Add the following in your .cargo/config.toml:

[target.'<target-triple>']
runner = "arduino-run -b <board> -p <port>"

Command reference

Usage: arduino-run [OPTIONS] --board <BOARD> --port <PORT> <ELF>

Arguments:
  <ELF>  The ELF firmware file

Options:
  -b, --board <BOARD>        The Fully Qualified Board Name (FQBN)
  -p, --port <PORT>          The serial port [env: ARDUINO_RUN_PORT]
  -m, --monitor              Open serial monitor after flashing
  -r, --baudrate <BAUDRATE>  The serial monitor baudrate [default: 9600]
  -h, --help                 Print help
  -V, --version              Print version

Additional resources

License

Licensed under either of

at your option.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Copyright © 2024, Matteo Carnelos

Commit count: 4

cargo fmt