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
types.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5namespace epaper {
6
32enum class Color : std::uint8_t {
33 White = 0xFF,
34 Black = 0x00,
35 Gray1 = 0x80,
36 Gray2 = 0x40,
37 Red = 0x01,
38 Yellow = 0x02,
39 Blue = 0x03,
40 Green = 0x04
41};
42
66enum class Orientation : std::uint8_t {
67 Portrait0 = 0,
68 Landscape90 = 1,
69 Portrait180 = 2,
70 Landscape270 = 3
71};
72
92enum class DotPixel : std::uint8_t {
93 Pixel1x1 = 1,
94 Pixel2x2 = 2,
95 Pixel3x3 = 3,
96 Pixel4x4 = 4,
97 Pixel5x5 = 5,
98 Pixel6x6 = 6,
99 Pixel7x7 = 7,
100 Pixel8x8 = 8
101};
102
120enum class LineStyle {
121 Solid,
122 Dotted
123};
124
151enum class DrawFill {
152 Empty,
153 Full
154};
155
156} // namespace epaper
Definition color.hpp:5
DrawFill
Definition types.hpp:151
@ Full
Draw filled shape (solid interior)
@ Empty
Draw outline only (border with no fill)
Orientation
Definition types.hpp:66
@ Portrait180
180° rotation (upside down portrait)
@ Landscape270
270° clockwise / 90° counter-clockwise (landscape mode)
@ Landscape90
90° clockwise rotation (landscape mode)
@ Portrait0
Default portrait orientation (0° rotation)
DotPixel
Definition types.hpp:92
@ Pixel7x7
7x7 pixel block
@ Pixel8x8
8x8 pixel block (thickest)
@ Pixel3x3
3x3 pixel block
@ Pixel4x4
4x4 pixel block
@ Pixel2x2
2x2 pixel block
@ Pixel1x1
Single pixel (finest resolution)
@ Pixel5x5
5x5 pixel block
@ Pixel6x6
6x6 pixel block
Color
Definition types.hpp:32
@ Gray1
First gray level - lighter (Grayscale4 mode only)
@ Gray2
Second gray level - darker (Grayscale4 mode only)
LineStyle
Definition types.hpp:120
@ Dotted
Dotted line pattern (alternating pixels)
@ Solid
Continuous solid line.