Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build script #7

Open
Kirizaki opened this issue Oct 31, 2019 · 1 comment
Open

Add build script #7

Kirizaki opened this issue Oct 31, 2019 · 1 comment
Labels
good first issue Good for newcomers

Comments

@Kirizaki
Copy link
Owner

We need a building script.

Can be discussed in sync with #6

@Kirizaki Kirizaki added the good first issue Good for newcomers label Oct 31, 2019
@Kirizaki
Copy link
Owner Author

We can use arduino-cli for: compilation | adding libraries | uploading sketch.

Below brief instructions how to use arduino-cli based on Getting Started:

  1. Install arduino-cli:
sudo apt install arduino-cli
  1. Update arduino-cli (optional - first use of arduino-cli only)
arduino-cli core update-index
  1. Detect Arduino device
arduino-cli board list
  1. Install proper core
arduino-cli core install <core_name>
  1. Verify installation
arduino-cli core list
  1. Compile .ino:
arduino-cli compile --fqbn <core_name> <ino_file_path>
  1. Upload sketch to Arduino (optional):
arduino-cli upload -p /dev/ttyACM0 --fqbn <core_name> <ino_file_path>
  1. Search required sketch libraries to Arduino (i.e. ArduinoSTL, MySensors):
arduino-cli lib search <lib_name>
  1. Install required sketch libraries on Arduino:
arduino-cli lib install "<lib_name>"

Note#1:
Optional steps can be triggered with specific flag while running process

Note#2:
Steps 7 & 8 maybe must be done before compilation (step 5)

Usage of arduino-cli can be wrapped with any other script (i.e. shell script | Makefile).

@Kirizaki Kirizaki pinned this issue Nov 18, 2019
@Kirizaki Kirizaki unpinned this issue Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant