From cf58ef292bb1982fdc357b5c750f027f77a89073 Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 16 Oct 2024 22:51:24 +0200 Subject: [PATCH] add ESPAsyncWebServer to cangrow.sh setup, wip --- Arduino/CanGrow/CanGrow.ino | 29 +++++++++++++++++++++++++++++ Arduino/CanGrow/include/CanGrow.h | 1 + cangrow.sh | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 6e5fb71..ac07033 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -28,9 +28,38 @@ */ +/* + * CanGrow includes + */ #include "include/CanGrow.h" +/* + * Libraries + */ + +// * ESP8266 * +#ifdef ESP8266 +#include +#endif + +// * ESP32 * +#ifdef ESP32 +#include +#endif + +// https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/SPI +#include +// https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/Wire +#include +// https://github.com/lacamera/ESPAsyncWebServer +#include +// https://github.com/bblanchon/ArduinoJson +#include +// https://github.com/PaulStoffregen/Time +#include + + void setup() { diff --git a/Arduino/CanGrow/include/CanGrow.h b/Arduino/CanGrow/include/CanGrow.h index e090897..f6dbf7f 100644 --- a/Arduino/CanGrow/include/CanGrow.h +++ b/Arduino/CanGrow/include/CanGrow.h @@ -26,3 +26,4 @@ * THE SOFTWARE. * */ + diff --git a/cangrow.sh b/cangrow.sh index 59c9315..0cb3f4c 100755 --- a/cangrow.sh +++ b/cangrow.sh @@ -33,7 +33,7 @@ test -z $1 && help case $1 in s|setup) ACLI_DIR="$(dirname $ACLI)" - declare -a LIBS=( "Adafruit SSD1306" "Adafruit BME280 Library" "ArduinoJson" "NTPClient" "Time" ) + declare -a LIBS=( "Adafruit SSD1306" "Adafruit BME280 Library" "ArduinoJson" "NTPClient" "Time" "ESPAsyncWebServer" ) 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."