Xinyuan-LilyGO / TTGO-T-Display

MIT License
1.02k stars 335 forks source link

TTGO T-Display - How to use Ethernet module? #96

Open jmexposi opened 2 years ago

jmexposi commented 2 years ago

Hi,

I try to use a W5500 or ENC28J60 ethernet modules with second SPI (HSPI) channel.

I find a lot of examples of the use of Ethernet, ehernet2, ethernetECH, and another libraries but I haven't been able to get it to work.

The main problem is that the pins defined by default in both SPI channels correspond to pins used on the board or are not exposed and when I try to change them in the SPI definition I do not see the way to assign it in the ethernet library.

Some examples try to redefine (define) MOSI, MISO, SCK and CS and I tried it with another generic esp32 card and I managed to make it work but only changing the CS

The closest I have been has been using an example for the ESP32-CAM + SD + Ethernet (3 SPI devices at the same time) but asks for pin 14 by default for SCK

I understand that it is not a problem with the card, but it makes it very difficult to work with it: has anyone tried to use an ethernet module on this card?

Tnks! Br