From a517f0df1d02bec9ab486fc817fa2b667952bbb5 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Sun, 20 Mar 2022 22:12:18 +0100 Subject: [PATCH] Add ESP32-ETHERNET-KIT-VE type --- wled00/const.h | 2 +- wled00/data/settings_wifi.htm | 17 +++++++++-------- wled00/html_settings.h | 10 +++++----- wled00/wled_ethernet.h | 14 ++++++++++---- 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/wled00/const.h b/wled00/const.h index bb55065a..fcdf83ee 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -192,7 +192,7 @@ #define BTN_TYPE_ANALOG_INVERTED 8 //Ethernet board types -#define WLED_NUM_ETH_TYPES 7 +#define WLED_NUM_ETH_TYPES 8 #define WLED_ETH_NONE 0 #define WLED_ETH_WT32_ETH01 1 diff --git a/wled00/data/settings_wifi.htm b/wled00/data/settings_wifi.htm index f9642d51..c4a1c374 100644 --- a/wled00/data/settings_wifi.htm +++ b/wled00/data/settings_wifi.htm @@ -63,18 +63,19 @@

Experimental

Disable WiFi sleep:
Can help with connectivity issues.
- Do not enable if WiFi is working correctly, increases power consumption.
-
+ Do not enable if WiFi is working correctly, increases power consumption. +

Ethernet Type



+


diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 1abe419e..46285c79 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -64,11 +64,11 @@ Can help with connectivity issues.
Do not enable if WiFi is working correctly, increases power consumption.

Ethernet Type




-)====="; +


)====="; // Autogenerated from wled00/data/settings_leds.htm, do not edit!! diff --git a/wled00/wled_ethernet.h b/wled00/wled_ethernet.h index 6c4df32a..d240ba9d 100644 --- a/wled00/wled_ethernet.h +++ b/wled00/wled_ethernet.h @@ -31,10 +31,6 @@ const ethernet_settings ethernetBoards[] = { }, // WT32-EHT01 - // Please note, from my testing only these pins work for LED outputs: - // IO2, IO4, IO12, IO14, IO15 - // These pins do not appear to work from my testing: - // IO35, IO36, IO39 { 1, // eth_address, 16, // eth_power, @@ -92,6 +88,16 @@ const ethernet_settings ethernetBoards[] = { 18, // eth_mdio, ETH_PHY_LAN8720, // eth_type, ETH_CLOCK_GPIO17_OUT // eth_clk_mode + }, + + // ESP32-ETHERNET-KIT-VE + { + 0, // eth_address, + 5, // eth_power, + 23, // eth_mdc, + 18, // eth_mdio, + ETH_PHY_IP101, // eth_type, + ETH_CLOCK_GPIO0_IN // eth_clk_mode } }; #endif