Skip to content
Snippets Groups Projects
Commit 596c26c3 authored by Cyril Danilevski's avatar Cyril Danilevski
Browse files

Update README

parent 8951953e
No related branches found
No related tags found
No related merge requests found
Pipeline #131891 passed
...@@ -46,32 +46,34 @@ arduino-cli config init ...@@ -46,32 +46,34 @@ arduino-cli config init
Then set up the required environment. Edit `~/.arduino15/arduino-cli.yaml` and add the following: Then set up the required environment. Edit `~/.arduino15/arduino-cli.yaml` and add the following:
```bash ```yaml
board_manager: board_manager:
additional_urls: additional_urls:
- https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json - https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- http://arduino.esp8266.com/stable/package_esp8266com_index.json - http://arduino.esp8266.com/stable/package_esp8266com_index.json
library:
enable_unsafe_install: true
``` ```
We enable unsafe installation to allow installation of packages outside of the Arduino package registry (ie. via git)
Update the Arduino index with: Update the Arduino index with:
```bash arduino-cli core update-index
arduino-cli core update-index
```
The required libraries are: The required libraries are:
arduino-cli lib install ethernet arduino-cli lib install ethernet
arduino-cli lib install SNMP arduino-cli lib install --git-url https://github.com/patricklaf/SNMP.git
The project can be compiled so: The project can be compiled so:
arduino-cli compile --fqbn esp32:esp32:esp32wroverkit icbm.ino -v arduino-cli compile -b esp32:esp32:esp32wroverkit icbm.ino -v
And uploaded so: And uploaded so:
arduino-cli upload -p /dev/ttyUSB1 --fqbn esp32:esp32:esp32wroverkit arduino-cli upload -p /dev/ttyUSB1 -b esp32:esp32:esp32wroverkit
### Versioning ### Versioning
...@@ -84,5 +86,5 @@ The git date can be set via `-DICBM_GIT_TIMESTAMP`. ...@@ -84,5 +86,5 @@ The git date can be set via `-DICBM_GIT_TIMESTAMP`.
CI artefacts can be uploaded so: CI artefacts can be uploaded so:
unzip firmware.zip unzip icbm-0.0.0.zip
arduino-cli upload -p /dev/ttyUSB1 --fqbn esp32:esp32:esp32wroverkit --input-dir firmware arduino-cli upload -p /dev/ttyUSB1 -b esp32:esp32:esp32wroverkit --input-dir icbm-0.0.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment