Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
Paperdink_Merlot Class Reference

#include <merlot.h>

Inheritance diagram for Paperdink_Merlot:
PaperdinkDeviceBaseClass

Public Member Functions

int8_t enable_display () override
 
int8_t disable_display () override
 
- Public Member Functions inherited from PaperdinkDeviceBaseClass
int8_t begin ()
 
int8_t enable_sd ()
 
int8_t disable_sd ()
 
int8_t disable_everything ()
 
int8_t deep_sleep_timer_wakeup (uint64_t sleep_time_us)
 
int8_t deep_sleep_button_wakeup (uint8_t gpio_num)
 
int8_t deep_sleep_timer_button_wakeup (uint64_t sleep_time_us, uint8_t gpio_num)
 
int8_t connect_wifi (const char *ssid, const char *password, uint8_t attempts)
 
int8_t connect_wifi (const char *ssid, const char *password)
 

Public Attributes

bool has_color = true
 
bool has_greyscale = false
 
uint16_t color = GxEPD_RED
 
GxEPD2_3C< GxEPD2_420c_Z21, GxEPD2_420c_Z21::HEIGHTepd = GxEPD2_420c_Z21(EPD_CS, EPD_DC, EPD_RST, EPD_BUSY)
 
- Public Attributes inherited from PaperdinkDeviceBaseClass
uint8_t has_color = false
 
int color = GxEPD_BLACK
 

Detailed Description

Definition at line 6 of file merlot.h.

Member Function Documentation

◆ disable_display()

int8_t Paperdink_Merlot::disable_display ( )
overridevirtual

Reimplemented from PaperdinkDeviceBaseClass.

Definition at line 11 of file merlot.cpp.

12{
13 digitalWrite(EPD_EN, HIGH);
14
15 return 0;
16}
#define EPD_EN

◆ enable_display()

int8_t Paperdink_Merlot::enable_display ( )
overridevirtual

Reimplemented from PaperdinkDeviceBaseClass.

Definition at line 3 of file merlot.cpp.

4{
6 epd.init();
7
8 return 0;
9}
void init(uint32_t serial_diag_bitrate=0)
Definition GxEPD2_3C.h:125
virtual int8_t enable_display()
Definition base.cpp:20
GxEPD2_3C< GxEPD2_420c_Z21, GxEPD2_420c_Z21::HEIGHT > epd
Definition merlot.h:13

Member Data Documentation

◆ color

uint16_t Paperdink_Merlot::color = GxEPD_RED

Definition at line 11 of file merlot.h.

◆ epd

Definition at line 13 of file merlot.h.

◆ has_color

bool Paperdink_Merlot::has_color = true

Definition at line 9 of file merlot.h.

◆ has_greyscale

bool Paperdink_Merlot::has_greyscale = false

Definition at line 10 of file merlot.h.


The documentation for this class was generated from the following files: