libepaper 2.0.0
A C++23 library for controlling Waveshare e-paper displays on Raspberry Pi, featuring transparent sleep/wake management and a fluent builder API.
Loading...
Searching...
No Matches
gpio.hpp
Go to the documentation of this file.
1#pragma once
2
60#include <concepts>
61
62namespace epaper::hal {
63
100template <typename T>
101concept DigitalOutput = requires(T out, bool level) {
102 { out.write(level) } -> std::same_as<void>;
103};
104
144template <typename T>
145concept DigitalInput = requires(T in) {
146 { in.read() } -> std::same_as<bool>;
147};
148
149} // namespace epaper::hal
Definition gpio.hpp:145
Definition gpio.hpp:101
Definition gpio.hpp:62