|
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.
|
2.7 inch e-paper display driver (176x264 pixels). More...
#include <epd27.hpp>
Public Member Functions | |
| EPD27 (Device::HalSpi spi, Device::HalOutput cs, Device::HalOutput dc, Device::HalOutput rst, Device::HalInput busy, std::optional< Device::HalOutput > pwr=std::nullopt) | |
| Construct EPD27 driver with direct hardware resources. | |
| EPD27 (Device &device, EPD27PinConfig pins) | |
| Construct using custom pin configuration. | |
| EPD27 (Device &device) | |
| Construct using default Waveshare HAT pins. | |
| ~EPD27 ()=default | |
| auto | init (DisplayMode mode) -> std::expected< void, Error > |
| auto | clear () -> std::expected< void, Error > |
| auto | display (std::span< const std::byte > buffer) -> std::expected< void, Error > |
| auto | display_planes (std::span< const std::span< const std::byte > > planes) -> std::expected< void, Error > |
| auto | sleep () -> std::expected< void, Error > |
| auto | wake () -> std::expected< void, Error > |
| auto | power_off () -> std::expected< void, Error > |
| auto | power_on () -> std::expected< void, Error > |
| auto | mode () const noexcept -> DisplayMode |
| auto | buffer_size () const noexcept -> std::size_t |
Static Public Member Functions | |
| static auto | width () noexcept -> std::size_t |
| static auto | height () noexcept -> std::size_t |
| static auto | supports_partial_refresh () noexcept -> bool |
| static auto | supports_power_control () noexcept -> bool |
| static auto | supports_wake () noexcept -> bool |
Static Public Attributes | |
| static constexpr std::size_t | WIDTH = 176 |
| static constexpr std::size_t | HEIGHT = 264 |
2.7 inch e-paper display driver (176x264 pixels).
2.7 inch e-paper display driver for Linux (Raspberry Pi).
|
inline |
Construct EPD27 driver with direct hardware resources.
| spi | SPI bus instance |
| cs | Chip Select pin |
| dc | Data/Command pin |
| rst | Reset pin |
| busy | Busy signal pin |
| pwr | Optional power control pin |
|
inline |
Construct using custom pin configuration.
| device | Initialized Linux device |
| pins | Pin map |
|
inlineexplicit |
Construct using default Waveshare HAT pins.
| device | Initialized Linux device |
|
default |
|
inlinenoexcept |
|
inline |

|
inline |


|
inline |

|
inlinestaticnoexcept |
|
inline |


|
inlinenoexcept |

|
inline |
|
inline |
|
inline |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inline |


|
inlinestaticnoexcept |
|
staticconstexpr |
|
staticconstexpr |