Skip to content

Commit 57b01c2

Browse files
authored
Merge pull request wled#4030 from rorosaurus/0_15
add ETH support for LILYGO-POE-Pro
2 parents 5f3e3d7 + 17e1975 commit 57b01c2

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You are all set if you have enabled `Editor: Detect Indentation` in VS Code.
2828

2929
#### Blocks
3030

31-
Whether the opening bracket of e.g. an `if` block is in the same line as the condition or in a separate line is up to your discretion. If there is only one statement, leaving out block braches is acceptable.
31+
Whether the opening bracket of e.g. an `if` block is in the same line as the condition or in a separate line is up to your discretion. If there is only one statement, leaving out block brackets is acceptable.
3232

3333
Good:
3434
```cpp
@@ -49,7 +49,7 @@ if (a == b) doStuff(a);
4949
```
5050

5151
There should always be a space between a keyword and its condition and between the condition and brace.
52-
Within the condition, no space should be between the paranthesis and variables.
52+
Within the condition, no space should be between the parenthesis and variables.
5353
Spaces between variables and operators are up to the authors discretion.
5454
There should be no space between function names and their argument parenthesis.
5555

wled00/const.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
#define BTN_TYPE_TOUCH_SWITCH 9
329329

330330
//Ethernet board types
331-
#define WLED_NUM_ETH_TYPES 12
331+
#define WLED_NUM_ETH_TYPES 13
332332

333333
#define WLED_ETH_NONE 0
334334
#define WLED_ETH_WT32_ETH01 1
@@ -342,6 +342,7 @@
342342
#define WLED_ETH_ABCWLEDV43ETH 9
343343
#define WLED_ETH_SERG74 10
344344
#define WLED_ETH_ESP32_POE_WROVER 11
345+
#define WLED_ETH_LILYGO_T_POE_PRO 12
345346

346347
//Hue error codes
347348
#define HUE_ERROR_INACTIVE 0

wled00/data/settings_wifi.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ <h3>Ethernet Type</h3>
263263
<option value="11">ESP32-POE-WROVER</option>
264264
<option value="6">ESP32Deux/RGB2Go Tetra</option>
265265
<option value="7">KIT-VE</option>
266+
<option value="12">LILYGO T-POE Pro</option>
266267
<option value="8">QuinLED-Dig-Octa & T-ETH-POE</option>
267268
<option value="4">QuinLED-ESP32</option>
268269
<option value="10">Serg74-ETH32</option>

wled00/network.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,17 @@ const ethernet_settings ethernetBoards[] = {
133133
18, // eth_mdio,
134134
ETH_PHY_LAN8720, // eth_type,
135135
ETH_CLOCK_GPIO0_OUT // eth_clk_mode
136+
},
137+
138+
// LILYGO T-POE Pro
139+
// https://github.com/Xinyuan-LilyGO/LilyGO-T-ETH-Series/blob/master/schematic/T-POE-PRO.pdf
140+
{
141+
0, // eth_address,
142+
5, // eth_power,
143+
23, // eth_mdc,
144+
18, // eth_mdio,
145+
ETH_PHY_LAN8720, // eth_type,
146+
ETH_CLOCK_GPIO0_OUT // eth_clk_mode
136147
}
137148
};
138149
#endif

0 commit comments

Comments
 (0)