Compare commits
No commits in common. "7dcfc375bb1378aa25735ab940282aa715c0af84" and "a3302689607ed1eedb94521d44bd8f0cf5eb43ea" have entirely different histories.
7dcfc375bb
...
a330268960
2 changed files with 3 additions and 21 deletions
|
@ -42,13 +42,11 @@
|
|||
// * 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,20 +42,7 @@ test -z $1 && help
|
|||
case $1 in
|
||||
s|setup)
|
||||
ACLI_DIR="$(dirname $ACLI)"
|
||||
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"
|
||||
)
|
||||
declare -a LIBS=( "Adafruit SSD1306" "Adafruit BME280 Library" "ArduinoJson" "NTPClient" "Time" "ESP Async WebServer" )
|
||||
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."
|
||||
|
@ -75,11 +62,8 @@ 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 and ESP32 cores for Arduino"
|
||||
for core in ${!CORES[@]}
|
||||
do
|
||||
${ACLI_CMD} core install ${CORES[$core]}
|
||||
done
|
||||
echo ":: Installing ESP8266 core for Arduino"
|
||||
${ACLI_CMD} core install esp8266:esp8266
|
||||
echo ":: Installing Arduino libraries"
|
||||
for lib in ${!LIBS[@]}
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue