Skip to content

Commit fa3a94e

Browse files
authored
Merge pull request #5156 from Aogu181/main
Add Gledopto Series With Ethernet
2 parents 2ff4ee0 + 4b0cf87 commit fa3a94e

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

wled00/const.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ static_assert(WLED_MAX_BUSSES <= 32, "WLED_MAX_BUSSES exceeds hard limit");
366366
#define BTN_TYPE_TOUCH_SWITCH 9
367367

368368
//Ethernet board types
369-
#define WLED_NUM_ETH_TYPES 13
369+
#define WLED_NUM_ETH_TYPES 14
370+
370371

371372
#define WLED_ETH_NONE 0
372373
#define WLED_ETH_WT32_ETH01 1
@@ -381,6 +382,7 @@ static_assert(WLED_MAX_BUSSES <= 32, "WLED_MAX_BUSSES exceeds hard limit");
381382
#define WLED_ETH_SERG74 10
382383
#define WLED_ETH_ESP32_POE_WROVER 11
383384
#define WLED_ETH_LILYGO_T_POE_PRO 12
385+
#define WLED_ETH_GLEDOPTO 13
384386

385387
//Hue error codes
386388
#define HUE_ERROR_INACTIVE 0

wled00/data/settings_wifi.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ <h3>Ethernet Type</h3>
270270
<option value="5">TwilightLord-ESP32</option>
271271
<option value="3">WESP32</option>
272272
<option value="1">WT32-ETH01</option>
273+
<option value="13">Gledopto</option>
273274
</select><br><br>
274275
</div>
275276
<hr>

wled00/network.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,17 @@ const ethernet_settings ethernetBoards[] = {
144144
18, // eth_mdio,
145145
ETH_PHY_LAN8720, // eth_type,
146146
ETH_CLOCK_GPIO0_OUT // eth_clk_mode
147-
}
147+
},
148+
149+
// Gledopto Series With Ethernet
150+
{
151+
1, // eth_address,
152+
5, // eth_power,
153+
23, // eth_mdc,
154+
33, // eth_mdio,
155+
ETH_PHY_LAN8720, // eth_type,
156+
ETH_CLOCK_GPIO0_IN // eth_clk_mode
157+
},
148158
};
149159

150160
bool initEthernet()

0 commit comments

Comments
 (0)