Add esp32-wt32-eth01 ethernet board (#1064)

* Add esp32-wt32-eth01 ethernet board
This commit is contained in:
Florian authored and GitHub committed 2021-08-17 18:48:11 -05:00
1 parent 94a7792863
commit 0ede075843
4 files changed
+39 -3

No files matched your search

+21 -1
View File
@@ -83,7 +83,27 @@ const byte ip[] = {192, 168, 1, 99};
const byte mac[] = {0xDE, 0xED, 0xBA, 0xFE, 0x54, 0x95}; //W5100 ethernet shield mac adress
#endif
//#define ESP32_ETHERNET=true // Uncomment to use Ethernet module on OLIMEX ESP32 Ethernet gateway
//#define ESP32_ETHERNET=true // Uncomment to use Ethernet module on ESP32 Ethernet gateway and adapt the settings to your board below, the default parameter are for OLIMEX ESP32 Gateway
#ifdef ESP32_ETHERNET
# ifndef ETH_PHY_ADDR
# define ETH_PHY_ADDR 0
# endif
# ifndef ETH_PHY_TYPE
# define ETH_PHY_TYPE ETH_PHY_LAN8720
# endif
# ifndef ETH_PHY_POWER
# define ETH_PHY_POWER 12
# endif
# ifndef ETH_PHY_MDC
# define ETH_PHY_MDC 23
# endif
# ifndef ETH_PHY_MDIO
# define ETH_PHY_MDIO 18
# endif
# ifndef ETH_CLK_MODE
# define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
# endif
#endif
#if defined(ESPWifiManualSetup) // for nodemcu, weemos and esp8266
# ifndef wifi_ssid
-2
View File
@@ -196,8 +196,6 @@ static String ota_server_cert = "";
# include <nvs_flash.h>
# ifdef ESP32_ETHERNET
# define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
# define ETH_PHY_POWER 12
# include <ETH.h>
void WiFiEvent(WiFiEvent_t event);
static bool esp32EthConnected = false;