Compare commits
2 commits
a330268960
...
7dcfc375bb
Author | SHA1 | Date | |
---|---|---|---|
7dcfc375bb | |||
989fefd1e2 |
2 changed files with 21 additions and 3 deletions
|
@ -42,11 +42,13 @@
|
|||
// * ESP8266 *
|
||||
#ifdef ESP8266
|
||||
#include <ESP8266WiFi.h>
|
||||
#include "ESPAsyncTCP.h"
|
||||
#endif
|
||||
|
||||
// * ESP32 *
|
||||
#ifdef ESP32
|
||||
#include <WiFi.h>
|
||||
#include "AsyncTCP.h"
|
||||
#endif
|
||||
|
||||
// https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/SPI
|
||||
|
|
22
cangrow.sh
22
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
|
||||
|
|
Loading…
Reference in a new issue