LilyGO T-ETH-Lite-ESP32S3
This commit is contained in:
@@ -6975,6 +6975,7 @@ const std::vector<std::pair<String, String>> WebCfgServer::getNetworkDetectionOp
|
|||||||
options.push_back(std::make_pair("8", "GL-S10"));
|
options.push_back(std::make_pair("8", "GL-S10"));
|
||||||
options.push_back(std::make_pair("9", "ETH01-Evo"));
|
options.push_back(std::make_pair("9", "ETH01-Evo"));
|
||||||
options.push_back(std::make_pair("13", "Waveshare ESP32-S3-ETH / ESP32-S3-ETH-POE"));
|
options.push_back(std::make_pair("13", "Waveshare ESP32-S3-ETH / ESP32-S3-ETH-POE"));
|
||||||
|
options.push_back(std::make_pair("14", "LilyGO T-ETH-Lite-ESP32S3"));
|
||||||
options.push_back(std::make_pair("11", "Custom LAN module"));
|
options.push_back(std::make_pair("11", "Custom LAN module"));
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
|||||||
@@ -14,5 +14,6 @@ enum class NetworkDeviceType
|
|||||||
GL_S10,
|
GL_S10,
|
||||||
ETH01_Evo,
|
ETH01_Evo,
|
||||||
Waveshare_ESP32_S3_ETH,
|
Waveshare_ESP32_S3_ETH,
|
||||||
|
LilyGO_T_ETH_Lite_S3,
|
||||||
CUSTOM
|
CUSTOM
|
||||||
};
|
};
|
||||||
@@ -38,4 +38,11 @@
|
|||||||
#define ETH_PHY_SPI_MISO_WAVESHARE_ESP32_S3_ETH 12
|
#define ETH_PHY_SPI_MISO_WAVESHARE_ESP32_S3_ETH 12
|
||||||
#define ETH_PHY_SPI_MOSI_WAVESHARE_ESP32_S3_ETH 11
|
#define ETH_PHY_SPI_MOSI_WAVESHARE_ESP32_S3_ETH 11
|
||||||
|
|
||||||
|
#define ETH_PHY_CS_ETHLITES3_W5500 9
|
||||||
|
#define ETH_PHY_IRQ_ETHLITES3_W5500 13
|
||||||
|
#define ETH_PHY_RST_ETHLITES3_W5500 14
|
||||||
|
#define ETH_PHY_SPI_SCK_ETHLITES3_W5500 10
|
||||||
|
#define ETH_PHY_SPI_MISO_ETHLITES3_W5500 11
|
||||||
|
#define ETH_PHY_SPI_MOSI_ETHLITES3_W5500 12
|
||||||
|
|
||||||
#define ETH_ADDR 1
|
#define ETH_ADDR 1
|
||||||
@@ -80,6 +80,18 @@ NetworkDevice *NetworkDeviceInstantiator::Create(NetworkDeviceType networkDevice
|
|||||||
ETH_PHY_SPI_MOSI_ELITE_W5500,
|
ETH_PHY_SPI_MOSI_ELITE_W5500,
|
||||||
ETH_PHY_W5500);
|
ETH_PHY_W5500);
|
||||||
break;
|
break;
|
||||||
|
case NetworkDeviceType::LilyGO_T_ETH_Lite_S3:
|
||||||
|
device = new EthernetDevice(hostname, preferences, ipConfiguration, "LilyGO T-ETH-Lite-ESP32S3",
|
||||||
|
ETH_PHY_ADDR_W5500,
|
||||||
|
ETH_PHY_CS_ETHLITES3_W5500,
|
||||||
|
ETH_PHY_IRQ_ETHLITES3_W5500,
|
||||||
|
ETH_PHY_RST_ETHLITES3_W5500,
|
||||||
|
ETH_PHY_SPI_SCK_ETHLITES3_W5500,
|
||||||
|
ETH_PHY_SPI_MISO_ETHLITES3_W5500,
|
||||||
|
ETH_PHY_SPI_MOSI_ETHLITES3_W5500,
|
||||||
|
ETH_PHY_W5500);
|
||||||
|
break;
|
||||||
|
|
||||||
case NetworkDeviceType::CUSTOM:
|
case NetworkDeviceType::CUSTOM:
|
||||||
{
|
{
|
||||||
int custPHY = preferences->getInt(preference_network_custom_phy, 0);
|
int custPHY = preferences->getInt(preference_network_custom_phy, 0);
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ NetworkDeviceType NetworkUtil::GetDeviceTypeFromPreference(int hardwareDetect, i
|
|||||||
return NetworkDeviceType::LilyGO_T_ETH_ELite;
|
return NetworkDeviceType::LilyGO_T_ETH_ELite;
|
||||||
case 13:
|
case 13:
|
||||||
return NetworkDeviceType::Waveshare_ESP32_S3_ETH;
|
return NetworkDeviceType::Waveshare_ESP32_S3_ETH;
|
||||||
|
case 14:
|
||||||
|
return NetworkDeviceType::LilyGO_T_ETH_Lite_S3;
|
||||||
default:
|
default:
|
||||||
Log->println("Unknown hardware selected, falling back to Wi-Fi.");
|
Log->println("Unknown hardware selected, falling back to Wi-Fi.");
|
||||||
return NetworkDeviceType::WiFi;
|
return NetworkDeviceType::WiFi;
|
||||||
|
|||||||
Reference in New Issue
Block a user