mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-07-05 13:48:53 +00:00
got rid of the redefinition of SPI2_HOST
@psxde pls check if this breaks functionality
This commit is contained in:
parent
df54c04d21
commit
f77e9a46de
1 changed files with 1 additions and 2 deletions
|
@ -51,7 +51,6 @@ void IRAM_ATTR onTimer()
|
|||
#define ETH_MOSI 35
|
||||
#define ETH_MISO 37
|
||||
#define ETH_INT 38
|
||||
#define ETH_SPI_HOST SPI2_HOST
|
||||
#define ETH_SPI_CLOCK_MHZ 25
|
||||
byte mac[6] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
|
||||
|
||||
|
@ -193,7 +192,7 @@ void setup()
|
|||
Serial.println("Initialize as ETH");
|
||||
ESP32_W5500_onEvent();
|
||||
|
||||
if (ETH.begin(ETH_MISO, ETH_MOSI, ETH_SCK, ETH_SS, ETH_INT, ETH_SPI_CLOCK_MHZ, ETH_SPI_HOST, mac))
|
||||
if (ETH.begin(ETH_MISO, ETH_MOSI, ETH_SCK, ETH_SS, ETH_INT, ETH_SPI_CLOCK_MHZ, SPI2_HOST, mac))
|
||||
{ // Dynamic IP setup
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue