Skip to content

Commit

Permalink
Add support for Olimex ESP32-POE-WROVER.
Browse files Browse the repository at this point in the history
There is a version of the Olimex ESP32-POE board with an ESP32-WROVER
module which has a the ethernet clock connected to a different IO than
the version with an ESP32-WROOM module.

This commit adds a new runtime selectable variant for the WROVER version.
  • Loading branch information
m-wachter committed Dec 29, 2023
1 parent 662870b commit fa59aff
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
27 changes: 14 additions & 13 deletions wled00/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,20 @@
#define BTN_TYPE_ANALOG_INVERTED 8

//Ethernet board types
#define WLED_NUM_ETH_TYPES 11

#define WLED_ETH_NONE 0
#define WLED_ETH_WT32_ETH01 1
#define WLED_ETH_ESP32_POE 2
#define WLED_ETH_WESP32 3
#define WLED_ETH_QUINLED 4
#define WLED_ETH_TWILIGHTLORD 5
#define WLED_ETH_ESP32DEUX 6
#define WLED_ETH_ESP32ETHKITVE 7
#define WLED_ETH_QUINLED_OCTA 8
#define WLED_ETH_ABCWLEDV43ETH 9
#define WLED_ETH_SERG74 10
#define WLED_NUM_ETH_TYPES 12

#define WLED_ETH_NONE 0
#define WLED_ETH_WT32_ETH01 1
#define WLED_ETH_ESP32_POE 2
#define WLED_ETH_WESP32 3
#define WLED_ETH_QUINLED 4
#define WLED_ETH_TWILIGHTLORD 5
#define WLED_ETH_ESP32DEUX 6
#define WLED_ETH_ESP32ETHKITVE 7
#define WLED_ETH_QUINLED_OCTA 8
#define WLED_ETH_ABCWLEDV43ETH 9
#define WLED_ETH_SERG74 10
#define WLED_ETH_ESP32_POE_WROVER 11

//Hue error codes
#define HUE_ERROR_INACTIVE 0
Expand Down
1 change: 1 addition & 0 deletions wled00/data/settings_wifi.htm
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ <h3>Ethernet Type</h3>
<option value="0">None</option>
<option value="9">ABC! WLED V43 & compatible</option>
<option value="2">ESP32-POE</option>
<option value="11">ESP32-POE-WROVER</option>
<option value="6">ESP32Deux</option>
<option value="7">KIT-VE</option>
<option value="8">QuinLED-Dig-Octa & T-ETH-POE</option>
Expand Down
10 changes: 10 additions & 0 deletions wled00/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ const ethernet_settings ethernetBoards[] = {
18, // eth_mdio,
ETH_PHY_LAN8720, // eth_type,
ETH_CLOCK_GPIO17_OUT // eth_clk_mode
},

// ESP32-POE-WROVER
{
0, // eth_address,
12, // eth_power,
23, // eth_mdc,
18, // eth_mdio,
ETH_PHY_LAN8720, // eth_type,
ETH_CLOCK_GPIO0_OUT // eth_clk_mode
}
};
#endif
Expand Down

0 comments on commit fa59aff

Please sign in to comment.