Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
File system. More...
#include <hV_File_System.h>
Public Member Functions | |
File_System () | |
Constructor. | |
uint8_t | beginFileSystem (uint8_t pinCS=NOT_CONNECTED, uint8_t port=0, int8_t pinDetect=-1, int level=LOW) |
File system 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 saved as file to SD-card. | |
uint8_t | saveWindow (STRING_CONST_TYPE name, uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint8_t multiplier=1) |
Save partial window as file to SD-card. | |
uint8_t | readScreen (STRING_CONST_TYPE name, uint8_t multiplier=1) |
Load and display BMP file. | |
void | printFileSystemError () |
Print the file system error. | |
File system.
Shared header for Linux and MCU
uint8_t File_System::beginFileSystem | ( | uint8_t | pinCS = NOT_CONNECTED, |
uint8_t | port = 0, | ||
int8_t | pinDetect = -1, | ||
int | level = LOW ) |
File system initialisation.
pinCS | SD selection, default = NOT_CONNECTED |
port | SPI port, default = 0, |
pinDetect | SD detection, default = -1 = none |
level | expected level when SD-card available, default = LOW |
uint8_t File_System::endFileSystem | ( | ) |
Close file system.
void File_System::printFileSystemError | ( | ) |
Print the file system error.
uint8_t File_System::readScreen | ( | STRING_CONST_TYPE | name, |
uint8_t | multiplier = 1 ) |
Load and display BMP file.
name | file name |
multiplier | size of each dot, default = 1
|
uint8_t File_System::resumeFileSystem | ( | ) |
Resume file system after suspend.
Switch to SD-card SPI bus, if any
uint8_t File_System::saveScreen | ( | STRING_CONST_TYPE | name, |
uint8_t | multiplier = 1 ) |
Screen saved as file to SD-card.
name | file name, only letters and numbers |
multiplier | size of each dot, default = 1
|
uint8_t File_System::saveWindow | ( | STRING_CONST_TYPE | name, |
uint16_t | x0, | ||
uint16_t | y0, | ||
uint16_t | dx, | ||
uint16_t | dy, | ||
uint8_t | multiplier = 1 ) |
Save partial window as file to SD-card.
name | file name, only letters and numbers |
x0 | top left coordinate, x-axis |
y0 | top left coordinate, y-axis |
dx | width to be copied, x-axis |
dy | height to be copied, y-axis |
multiplier | size of each dot, default = 1
|
uint8_t File_System::setFolder | ( | STRING_CONST_TYPE | name | ) |
Set the folder for files.
The folder is created if it does not exist
name | folder name, ony letters and numbers |
uint8_t File_System::suspendFileSystem | ( | ) |
Suspend file system.
Switch to main SPI and ensure SD-card /CS HIGH