diff --git a/cangrow.sh b/cangrow.sh index c11bf98..340bf5f 100755 --- a/cangrow.sh +++ b/cangrow.sh @@ -42,7 +42,20 @@ test -z $1 && help case $1 in s|setup) ACLI_DIR="$(dirname $ACLI)" - declare -a LIBS=( "Adafruit SSD1306" "Adafruit BME280 Library" "ArduinoJson" "NTPClient" "Time" "ESP Async WebServer" ) + declare -a CORES=( + "esp8266:esp8266@3.1.2" + "esp32:esp32@3.0.5" + ) + declare -a LIBS=( + "Adafruit SSD1306@2.5.12" + "Adafruit BME280 Library@2.2.4" + "ArduinoJson@7.2.0" + "NTPClient@3.2.1" + "Time@1.6.1" + "ESP Async WebServer@3.3.17" + "ESPAsyncTCP@1.2.4" + "AsyncTCP@1.1.4" + ) echo ":: Setting up build environment for CanGrow Firmware." echo " This will download the binary for arduino-cli and install" echo " the packages for the arduino ide from the debian repository." @@ -62,8 +75,11 @@ case $1 in wget -O - "https://github.com/arduino/arduino-cli/releases/download/v1.0.0/arduino-cli_1.0.0_Linux_64bit.tar.gz" | tar -C ${ACLI_DIR} -zxvf - arduino-cli chmod +x ${ACLI} echo "" - echo ":: Installing ESP8266 core for Arduino" - ${ACLI_CMD} core install esp8266:esp8266 + echo ":: Installing ESP8266 and ESP32 cores for Arduino" + for core in ${!CORES[@]} + do + ${ACLI_CMD} core install ${CORES[$core]} + done echo ":: Installing Arduino libraries" for lib in ${!LIBS[@]} do