1#ifndef C7222_PICO_W_BOARD_HPP
2#define C7222_PICO_W_BOARD_HPP
98 static std::unique_ptr<PicoWBoard> instance_;
109 std::array<Led, kLedCount> leds_;
115 std::array<Button, kButtonCount> buttons_;
Output-only GPIO wrapper intended for LEDs.
Definition led.hpp:39
Disable both copy and move operations.
Definition non_copyable.hpp:75
Board-level convenience wrapper for the C7222 Pico W board.
Definition c7222_pico_w_board.hpp:42
static PicoWBoard * GetInstance()
Access the singleton instance (if used).
static constexpr size_t kLedCount
Number of board LEDs exposed by this API.
Definition c7222_pico_w_board.hpp:45
Led & GetLed(LedId id)
Retrieve a board LED by logical ID.
LedId
Logical LED identifiers mapped to GPIO pins.
Definition c7222_pico_w_board.hpp:52
ButtonId
Logical button identifiers mapped to GPIO pins.
Definition c7222_pico_w_board.hpp:64
bool IsInitialized() const
Return true if construction-time initialization has completed.
Definition c7222_pico_w_board.hpp:74
Button & GetButton(ButtonId id)
Retrieve a board button by logical ID.
static constexpr size_t kButtonCount
Number of board buttons exposed by this API.
Definition c7222_pico_w_board.hpp:47
Output-only GPIO abstraction for LEDs.
C7222 course abstractions namespace.
Definition ble.hpp:20