add ESPAsyncWebServer to cangrow.sh setup, wip

This commit is contained in:
Marcus 2024-10-16 22:51:24 +02:00
parent ccca8b10ab
commit cf58ef292b
3 changed files with 31 additions and 1 deletions

View file

@ -28,9 +28,38 @@
*/
/*
* CanGrow includes
*/
#include "include/CanGrow.h"
/*
* Libraries
*/
// * ESP8266 *
#ifdef ESP8266
#include <ESP8266WiFi.h>
#endif
// * ESP32 *
#ifdef ESP32
#include <WiFi.h>
#endif
// https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/SPI
#include <SPI.h>
// https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/Wire
#include <Wire.h>
// https://github.com/lacamera/ESPAsyncWebServer
#include <ESPAsyncWebServer.h>
// https://github.com/bblanchon/ArduinoJson
#include <ArduinoJson.h>
// https://github.com/PaulStoffregen/Time
#include <TimeLib.h>
void setup() {

View file

@ -26,3 +26,4 @@
* THE SOFTWARE.
*
*/

View file

@ -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."