-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed issue with esp8266. The loser arduino-cli set only one url
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
# arduino-cli installation on ~/bin: | ||
# curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh | ||
# test repo: | ||
# https://github.com/kike-canaries/canairio_sensorlib/ | ||
|
||
arduino-cli config init | ||
|
||
# github libraries support | ||
arduino-cli config set library.enable_unsafe_install true | ||
# dependencies | ||
arduino-cli lib install "Adafruit Unified [email protected]" | ||
arduino-cli lib install "Adafruit BME280 [email protected]" | ||
arduino-cli lib install "Adafruit BMP280 [email protected]" | ||
arduino-cli lib install "Adafruit BME680 [email protected]" | ||
arduino-cli lib install "Adafruit SHT31 [email protected]" | ||
arduino-cli lib install "Adafruit [email protected]" | ||
arduino-cli lib install "Adafruit [email protected]" | ||
arduino-cli lib install "Sensirion [email protected]" | ||
arduino-cli lib install "[email protected]" | ||
arduino-cli lib install "[email protected]" | ||
arduino-cli lib install "[email protected]" | ||
arduino-cli lib install "Sensirion I2C [email protected]" | ||
arduino-cli lib install --git-url https://github.com/paulvha/sps30.git | ||
arduino-cli lib install --git-url https://github.com/enjoyneering/AHTxx.git | ||
arduino-cli lib install --git-url https://github.com/hpsaturn/DHT_nonblocking.git | ||
arduino-cli lib install --git-url https://github.com/jcomas/CM1106_UART.git | ||
arduino-cli lib install --git-url https://github.com/paulvha/SN-GCJA5.git | ||
# target: | ||
arduino-cli lib install --git-url https://github.com/kike-canaries/canairio_sensorlib.git | ||
|
||
# esp8266 test | ||
arduino-cli config set board_manager.additional_urls https://arduino.esp8266.com/stable/package_esp8266com_index.json | ||
arduino-cli core update-index | ||
arduino-cli core install esp8266:esp8266 | ||
arduino-cli compile --fqbn esp8266:esp8266:nodemcuv2 --build-property "build.extra_flags=-DCORE_DEBUG_LEVEL=0" examples/basic | ||
|
||
# esp32 test | ||
arduino-cli config set board_manager.additional_urls https://dl.espressif.com/dl/package_esp32_index.json | ||
arduino-cli core update-index | ||
arduino-cli core install esp32:esp32 | ||
arduino-cli compile --fqbn esp32:esp32:ttgo-t7-v14-mini32 --build-property "build.extra_flags=-DCORE_DEBUG_LEVEL=0" examples/basic | ||
|