Uses lwIP in combination with the ENC28J60 SPI ethernet module to bring a TCP/IP stack to the Pi Pico!
Packets are read from SPI and then fed to lwIP which is running in "NO_SYS" mode - because the Pi Pico has no operating system! Pseudo code for this approach can be found here.
Code to interact with the ethernet module was adapted from an @turicas's Arduino driver.
Thank you to @tobiasvogel for providing the wiring diagram
- diagram of wiring
- format code
- get DHCP discovery working