Compare commits

..

2 commits

2 changed files with 21 additions and 3 deletions

View file

@ -42,11 +42,13 @@
// * ESP8266 * // * ESP8266 *
#ifdef ESP8266 #ifdef ESP8266
#include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
#include "ESPAsyncTCP.h"
#endif #endif
// * ESP32 * // * ESP32 *
#ifdef ESP32 #ifdef ESP32
#include <WiFi.h> #include <WiFi.h>
#include "AsyncTCP.h"
#endif #endif
// https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/SPI // https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/SPI

View file

@ -42,7 +42,20 @@ test -z $1 && help
case $1 in case $1 in
s|setup) s|setup)
ACLI_DIR="$(dirname $ACLI)" 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 ":: Setting up build environment for CanGrow Firmware."
echo " This will download the binary for arduino-cli and install" echo " This will download the binary for arduino-cli and install"
echo " the packages for the arduino ide from the debian repository." 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 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} chmod +x ${ACLI}
echo "" echo ""
echo ":: Installing ESP8266 core for Arduino" echo ":: Installing ESP8266 and ESP32 cores for Arduino"
${ACLI_CMD} core install esp8266:esp8266 for core in ${!CORES[@]}
do
${ACLI_CMD} core install ${CORES[$core]}
done
echo ":: Installing Arduino libraries" echo ":: Installing Arduino libraries"
for lib in ${!LIBS[@]} for lib in ${!LIBS[@]}
do do