add ESPAsyncWebServer to cangrow.sh setup, wip
This commit is contained in:
parent
ccca8b10ab
commit
cf58ef292b
3 changed files with 31 additions and 1 deletions
|
@ -28,9 +28,38 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* CanGrow includes
|
||||||
|
*/
|
||||||
|
|
||||||
#include "include/CanGrow.h"
|
#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() {
|
void setup() {
|
||||||
|
|
||||||
|
|
|
@ -26,3 +26,4 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ 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" )
|
declare -a LIBS=( "Adafruit SSD1306" "Adafruit BME280 Library" "ArduinoJson" "NTPClient" "Time" "ESPAsyncWebServer" )
|
||||||
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."
|
||||||
|
|
Loading…
Reference in a new issue