How pimoroni/badger2040 works
Main Components
• Hardware Layer – Represent the two physical devices: Badger 2040 and Badger 2040 W. Emphasize that these rely on the RP2040 microcontroller and have minor hardware differences (e.g., the Pico W module on the Badger 2040 W).
• Module and Library Components – Include the firmware submodules (present under “firmware/PIMORONI_BADGER2040”, “firmware/PIMORONI_BADGER2040W” and “firmware/modules/wakeup”) which include board definitions, CMake scripts, patches, and C/C++ modules that extend the MicroPython runtime.
• CI/CD and Documentation – Represent the integration of workflow automation (GitHub workflows under .github/workflows for MicroPython builds and linting) and documentation resources (docs folder with overview, porting guide, and reference information).
Relationships and Interactions
• Next, illustrate how the firmware incorporates MicroPython along with critical libraries (provided via the firmware and modules directories) which enable the OS layer functionality.