EPD4in2v2 C++ Enhanced
Loading...
Searching...
No Matches
DisplayApi::Display Class Reference

Encapsulate Display operations and add a logic layer to inteface with low-level. More...

#include <DisplayApi.hpp>

Collaboration diagram for DisplayApi::Display:

Public Member Functions

 Display ()
 Instantiate the object and init SPI comms.
 
 ~Display ()
 Set display to sleep and stop SPI.
 
uint8_t init (uint8_t mode)
 Initialize the display in the specified mode.
 
void clear (void)
 Cler the display.
 
void print (uint8_t *image)
 Print an image (from Gui namespace)
 
void partialPrint (uint8_t *image, uint16_t x_position, uint16_t y_position, uint16_t width, uint16_t length)
 Use partial print for faster displaying.
 
void sleep (void)
 Set display to sleep mode.
 

Private Attributes

uint8_t initMode
 

Detailed Description

Encapsulate Display operations and add a logic layer to inteface with low-level.

Constructor & Destructor Documentation

◆ Display()

DisplayApi::Display::Display ( )

Instantiate the object and init SPI comms.

◆ ~Display()

DisplayApi::Display::~Display ( )

Set display to sleep and stop SPI.

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void DisplayApi::Display::clear ( void )

Cler the display.

Here is the caller graph for this function:

◆ init()

uint8_t DisplayApi::Display::init ( uint8_t mode)

Initialize the display in the specified mode.

Parameters
mode
Returns
Operation status
Here is the caller graph for this function:

◆ partialPrint()

void DisplayApi::Display::partialPrint ( uint8_t * image,
uint16_t x_position,
uint16_t y_position,
uint16_t width,
uint16_t length )

Use partial print for faster displaying.

Parameters
image
x_positionStarting point x coordinate
y_positionStarting point y coordinate
width
length
Here is the caller graph for this function:

◆ print()

void DisplayApi::Display::print ( uint8_t * image)

Print an image (from Gui namespace)

Calls the appropiate driver function

Parameters
image
Here is the caller graph for this function:

◆ sleep()

void DisplayApi::Display::sleep ( void )

Set display to sleep mode.

Here is the caller graph for this function:

Member Data Documentation

◆ initMode

uint8_t DisplayApi::Display::initMode
private

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