Skip to content

Commit

Permalink
fixed issue with esp8266. The loser arduino-cli set only one url
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Jan 29, 2023
1 parent 3a10077 commit a47c0be
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions arduino-cli-test.sh
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

0 comments on commit a47c0be

Please sign in to comment.