Encapsulate Display operations and add a logic layer to inteface with low-level.
More...
#include <DisplayApi.hpp>
|
| | 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.
|
| |
Encapsulate Display operations and add a logic layer to inteface with low-level.
◆ Display()
| DisplayApi::Display::Display |
( |
| ) |
|
Instantiate the object and init SPI comms.
◆ ~Display()
| DisplayApi::Display::~Display |
( |
| ) |
|
Set display to sleep and stop SPI.
◆ clear()
| void DisplayApi::Display::clear |
( |
void | | ) |
|
◆ init()
| uint8_t DisplayApi::Display::init |
( |
uint8_t | mode | ) |
|
Initialize the display in the specified mode.
- Parameters
-
- Returns
- Operation status
◆ 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_position | Starting point x coordinate |
| y_position | Starting point y coordinate |
| width | |
| length | |
◆ print()
| void DisplayApi::Display::print |
( |
uint8_t * | image | ) |
|
Print an image (from Gui namespace)
Calls the appropiate driver function
- Parameters
-
◆ sleep()
| void DisplayApi::Display::sleep |
( |
void | | ) |
|
Set display to sleep mode.
◆ initMode
| uint8_t DisplayApi::Display::initMode |
|
private |
The documentation for this class was generated from the following files: