Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
Loading...
Searching...
No Matches
Serial_Image16 Class Reference

Screen printed as 16-bit image header file on Serial console. More...

#include <hV_Serial_Image16.h>

Inheritance diagram for Serial_Image16:
Collaboration diagram for Serial_Image16:

Public Member Functions

 Serial_Image16 (Screen_EPD *screen)
 Constructor object.
 
uint8_t saveScreen (STRING_CONST_TYPE name)
 Send screen as header file to serial console.
 
uint8_t saveWindow (STRING_CONST_TYPE name, uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy)
 Send screen as 16-bit image header file to serial console.
 
uint8_t readScreen (image16_s image)
 Read an image from a header file.
 
- Public Member Functions inherited from Serial_System
 Serial_System ()
 Constructor object.
 
uint8_t beginFileSystem (uint8_t pinCS=NOT_CONNECTED, uint8_t port=0, int8_t pinDetect=-1, int level=LOW)
 File system and SD-card initialisation.
 
uint8_t endFileSystem ()
 Close file system.
 
uint8_t setFolder (STRING_CONST_TYPE name)
 Set the folder for files.
 
uint8_t suspendFileSystem ()
 Suspend file system.
 
uint8_t resumeFileSystem ()
 Resume file system after suspend.
 
uint8_t saveScreen (STRING_CONST_TYPE name, uint8_t multiplier=1)
 Screen printed to serial console.
 
uint8_t saveWindow (STRING_CONST_TYPE name, uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint8_t multiplier=1)
 Partial window printed to serial console.
 
uint8_t readScreen (STRING_CONST_TYPE name, uint8_t multiplier=1)
 Load and display header file.
 

Detailed Description

Screen printed as 16-bit image header file on Serial console.

Note
For all screens, monochrome and colour, 16 bits per pixel
Colours are RGB 5-6-5 coded
Header file to be included in project

Constructor & Destructor Documentation

◆ Serial_Image16()

Serial_Image16::Serial_Image16 ( Screen_EPD * screen)

Constructor object.

Parameters
screen&screen to link Serial_Image16 to

Member Function Documentation

◆ readScreen()

uint8_t Serial_Image16::readScreen ( image16_s image)

Read an image from a header file.

Frame-buffer updated, flush required

Note
Image16 compiled as header file at build-time
Parameters
imageimage16_s image
Returns
RESULT_SUCCESS is successful, RESULT_ERROR otherwise

◆ saveScreen()

uint8_t Serial_Image16::saveScreen ( STRING_CONST_TYPE name)

Send screen as header file to serial console.

Parameters
namefile name, only letters and numbers
Returns
RESULT_SUCCESS is successful, RESULT_ERROR otherwise

◆ saveWindow()

uint8_t Serial_Image16::saveWindow ( STRING_CONST_TYPE name,
uint16_t x0,
uint16_t y0,
uint16_t dx,
uint16_t dy )

Send screen as 16-bit image header file to serial console.

Parameters
namefile name, only letters and numbers
x0top left coordinate, x-axis
y0top left coordinate, y-axis
dxwidth to be copied, x-axis
dyheight to be copied, y-axis
Returns
RESULT_SUCCESS is successful, RESULT_ERROR otherwise

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