How wiznet/rp2040-hat-micropython works
Project type and purpose
• This is an embedded-software/hardware integration project: a MicroPython driver library and example suite that adds WIZnet W5100S Ethernet capability to a Raspberry Pi Pico (RP2040).
• The README and file tree show a core library (in Python/C patches), build scripts, and multiple network examples (DHCP, HTTP client/server, MQTT, etc.).
File structure
• Top-level:
• CMakeLists.txt, rp2_net_patch.cmake, and patches/ → tooling to build C-level patches or firmware image.
• libraries/ → likely the MicroPython driver modules (SPI interface, socket wrapper).
• examples/ → categorized by network protocol (DHCP, HTTP, MQTT, etc.), each with its own Python scripts and PCAP captures.
• static/images/ → documentation assets.
• Patterns:
• Layered design: Examples (app layer) → MicroPython driver library (abstraction layer) → C patches and SPI (HAL) → W5100S hardware → Ethernet network.
README
• Describes the WIZnet W5100S chip, SPI connection to RP2040, and points to “Getting Started” guide.
Elements
• From Examples → Driver API → SPI HAL → W5100S
• From W5100S → Physical Ethernet port → External Network
• Blue rectangles for software layers (Examples, Runtime, Library)
• Green rectangle for hardware (RP2040)