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
Variables
epaper::Grayscale Namespace Reference

Bit manipulation constants for grayscale processing. More...

Variables

constexpr std::uint8_t BLACK_MASK = 0x00
 Bit pattern for black pixel.
 
constexpr std::uint8_t BIT_SHIFT = 2
 Bit shift for 2-bit pixels.
 
constexpr std::uint8_t GRAY1_MASK = 0x80
 Bit pattern for gray level 1.
 
constexpr std::uint8_t GRAY2_MASK = 0x40
 Bit pattern for gray level 2.
 
constexpr std::uint8_t PIXEL_MASK = 0xC0
 Mask for extracting 2-bit pixel.
 
constexpr std::size_t TOTAL_PIXELS = 5808
 Total pixels / 8 for grayscale (176*264/8)
 
constexpr std::uint8_t WHITE_MASK = 0xC0
 Bit pattern for white pixel.
 

Detailed Description

Bit manipulation constants for grayscale processing.

Variable Documentation

◆ BIT_SHIFT

constexpr std::uint8_t epaper::Grayscale::BIT_SHIFT = 2
constexpr

Bit shift for 2-bit pixels.

◆ BLACK_MASK

constexpr std::uint8_t epaper::Grayscale::BLACK_MASK = 0x00
constexpr

Bit pattern for black pixel.

◆ GRAY1_MASK

constexpr std::uint8_t epaper::Grayscale::GRAY1_MASK = 0x80
constexpr

Bit pattern for gray level 1.

◆ GRAY2_MASK

constexpr std::uint8_t epaper::Grayscale::GRAY2_MASK = 0x40
constexpr

Bit pattern for gray level 2.

◆ PIXEL_MASK

constexpr std::uint8_t epaper::Grayscale::PIXEL_MASK = 0xC0
constexpr

Mask for extracting 2-bit pixel.

◆ TOTAL_PIXELS

constexpr std::size_t epaper::Grayscale::TOTAL_PIXELS = 5808
constexpr

Total pixels / 8 for grayscale (176*264/8)

◆ WHITE_MASK

constexpr std::uint8_t epaper::Grayscale::WHITE_MASK = 0xC0
constexpr

Bit pattern for white pixel.