From 0c176c6c3fed1fb438799e9a4e4e7b53f5b14b0b Mon Sep 17 00:00:00 2001 From: arovak Date: Fri, 29 May 2020 14:35:17 +0200 Subject: [PATCH 1/2] Add Ethernet.h for WiFiSpi compatibility --- include/espspi/Ethernet.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/espspi/Ethernet.h diff --git a/include/espspi/Ethernet.h b/include/espspi/Ethernet.h new file mode 100644 index 00000000..61fc6f61 --- /dev/null +++ b/include/espspi/Ethernet.h @@ -0,0 +1,9 @@ +#ifndef WIFISPI_H +#define WIFISPI_H + +// Glue between STM32_EthernetWebserver and WiFiSpi library +#include +using EthernetClient = WiFiSpiClient; // Alias +using EthernetServer = WiFiSpiServer; + +#endif \ No newline at end of file From 636215ede4cf26ed82cc1c8ef90561181839dfca Mon Sep 17 00:00:00 2001 From: arovak Date: Fri, 29 May 2020 14:36:55 +0200 Subject: [PATCH 2/2] Standard STM32 webserver with WiFiSpi --- test/espspi/WiFi.h | 6 ------ user_setups/stm32f4xx/stm32f407-black_ili9341_wifi.ini | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 test/espspi/WiFi.h diff --git a/test/espspi/WiFi.h b/test/espspi/WiFi.h deleted file mode 100644 index 5050600b..00000000 --- a/test/espspi/WiFi.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef WIFISPI_H -#define WIFISPI_H -#include "WiFiSpi.h" - -WiFiSpiClass WiFi; -#endif \ No newline at end of file diff --git a/user_setups/stm32f4xx/stm32f407-black_ili9341_wifi.ini b/user_setups/stm32f4xx/stm32f407-black_ili9341_wifi.ini index f4161a51..23894dd2 100644 --- a/user_setups/stm32f4xx/stm32f407-black_ili9341_wifi.ini +++ b/user_setups/stm32f4xx/stm32f407-black_ili9341_wifi.ini @@ -15,6 +15,7 @@ build_flags = ${env.build_flags} ${flags.stm32_flags} -I include/stm32f4 + -I include/espspi ; -- TFT_eSPI build options ------------------------ ${lcd.lolin24} ;-D TFT_MISO=PB4 ;Default @@ -56,8 +57,7 @@ lib_deps = ; STM32duino STM32Ethernet@^1.0.5 ; https://github.com/stm32duino/LwIP.git ; https://github.com/netwizeBE/Ethernet3.git - ; https://github.com/khoih-prog/EthernetWebServer_STM32 - https://github.com/arovak/EthernetWebServer_STM32.git + https://github.com/khoih-prog/EthernetWebServer_STM32 https://github.com/JiriBilek/WiFiSpi.git lib_ignore = @@ -65,6 +65,6 @@ lib_ignore = XPT2046_Touchscreen lv_lib_zifont -src_filter = +<*> -<.git/> -<.svn/> - - - - - + +src_filter = +<*> -<.git/> -<.svn/> - - - - - + + ;***************************************************