|
ELEC-C7222
Libraries for ELEC C7222 Course Work
|
The C7222 Pico W board is a very simple I/O board intended as a getting-started platform for Raspberry Pi Pico W development. It provides a UART connector, a reset button, four user buttons, and three red/green LED pairs so core embedded workflows can be tested quickly with minimal hardware complexity.

The schematic is shown in the image above. The 3D board view below is for reference only.
This document summarizes the external interfaces and GPIO assignments for the C7222 Pico W board, based on the schematic.
The board is built around a Raspberry Pi Pico W. It exposes:
Each LED is tied to 3V3 through a 470 Ω resistor. The GPIO drives the LED low to turn it on (active‑low).
LED1_RED → GP21LED1_GREEN → GP20LED2_RED → GP19LED2_GREEN → GP18LED3_RED → GP17LED3_GREEN → GP16These match the C++ API enums:
PicoWBoard::LedId::LED1_RED = 21PicoWBoard::LedId::LED1_GREEN = 20PicoWBoard::LedId::LED2_RED = 19PicoWBoard::LedId::LED2_GREEN = 18PicoWBoard::LedId::LED3_RED = 17PicoWBoard::LedId::LED3_GREEN = 16Each button pulls the GPIO to GND when pressed, with a 100 kΩ pull‑up to 3V3.
BUTTON_B1 → GP2BUTTON_B2 → GP3BUTTON_B3 → GP4BUTTON_B4 → GP5These match the C++ API enums:
PicoWBoard::ButtonId::BUTTON_B1 = 2PicoWBoard::ButtonId::BUTTON_B2 = 3PicoWBoard::ButtonId::BUTTON_B3 = 4PicoWBoard::ButtonId::BUTTON_B4 = 5The UART header exposes the Pico’s UART signals:
DBG_TX → GP0DBG_RX → GP1GNDNotes:
stdio/printf output.DBG_TX goes to debugger RX, and board DBG_RX goes to debugger TX.The RESET switch ties the Pico RUN pin to GND to reset the board.
0 to turn on, 1 to turn off.0, released = logic 1.c7222_pico_w_board.hpp for clarity.