Paperd.Ink Library
0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
classic.h
Go to the documentation of this file.
1
#ifndef _PDINK_CLASSIC_H_
2
#define _PDINK_CLASSIC_H_
3
4
#include "
base.h
"
5
6
class
Paperdink_Classic
:
public
PaperdinkDeviceBaseClass
7
{
8
public
:
9
bool
has_color
=
false
;
10
bool
has_greyscale
=
true
;
11
uint16_t
color
=
GxEPD_BLACK
;
12
13
GxEPD2_BW<GxEPD2_420, GxEPD2_420::HEIGHT>
epd
=
GxEPD2_420
(
EPD_CS
,
EPD_DC
,
EPD_RST
,
EPD_BUSY
);
14
15
int8_t
enable_display
()
override
;
16
int8_t
disable_display
()
override
;
17
};
18
19
#endif
/* _PDINK_CLASSIC_H_ */
GxEPD_BLACK
#define GxEPD_BLACK
Definition
GxEPD2.h:19
base.h
GxEPD2_420
Definition
GxEPD2_420.h:21
GxEPD2_BW
Definition
GxEPD2_BW.h:83
PaperdinkDeviceBaseClass
Definition
base.h:13
Paperdink_Classic
Definition
classic.h:7
Paperdink_Classic::enable_display
int8_t enable_display() override
Definition
classic.cpp:3
Paperdink_Classic::disable_display
int8_t disable_display() override
Definition
classic.cpp:11
Paperdink_Classic::has_greyscale
bool has_greyscale
Definition
classic.h:10
Paperdink_Classic::color
uint16_t color
Definition
classic.h:11
Paperdink_Classic::has_color
bool has_color
Definition
classic.h:9
Paperdink_Classic::epd
GxEPD2_BW< GxEPD2_420, GxEPD2_420::HEIGHT > epd
Definition
classic.h:13
EPD_CS
#define EPD_CS
Definition
pin_assignment.h:18
EPD_BUSY
#define EPD_BUSY
Definition
pin_assignment.h:20
EPD_RST
#define EPD_RST
Definition
pin_assignment.h:22
EPD_DC
#define EPD_DC
Definition
pin_assignment.h:19
src
devices
classic.h
Generated by
1.12.0