eink154inch 2.0.0.0
|
Functions | |
void | eink154inch_cfg_setup (eink154inch_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | eink154inch_init (eink154inch_t *ctx, eink154inch_cfg_t *cfg) |
Initialization function. | |
void | eink154inch_send_cmd (eink154inch_t *ctx, uint8_t command) |
Sending a command. | |
void | eink154inch_send_data (eink154inch_t *ctx, uint8_t c_data) |
Sending data. | |
void | eink154inch_reset (eink154inch_t *ctx) |
Reset chip. | |
void | eink154inch_sleep_mode (eink154inch_t *ctx) |
Sleep mode. | |
void | eink154inch_start_config (eink154inch_t *ctx) |
Configuration display. | |
void | eink154inch_set_lut (eink154inch_t *ctx, const uint8_t *lut, uint8_t n_bytes) |
Set LUT table. | |
void | eink154inch_set_mem_pointer (eink154inch_t *ctx, uint8_t x, uint8_t y) |
Setting pointers in memory. | |
void | eink154inch_set_mem_area (eink154inch_t *ctx, eink154inch_xy_t *xy) |
Setting area in memory. | |
void | eink154inch_update_display (eink154inch_t *ctx) |
Update dispaly. | |
void | eink154inch_fill_screen (eink154inch_t *ctx, uint8_t color) |
Function that fills the screen. | |
void | eink154inch_image (eink154inch_t *ctx, const uint8_t *image_buffer) |
Displays image. | |
void | eink154inch_text (eink154inch_t *ctx, char *text, eink154inch_text_set_t *text_set) |
Draw text on the screen. | |
void | eink154inch_set_font (eink154inch_t *ctx, eink154inch_font_t *cfg_font) |
Set text font. | |
void eink154inch_cfg_setup | ( | eink154inch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void eink154inch_fill_screen | ( | eink154inch_t * | ctx, |
uint8_t | color ) |
Function that fills the screen.
ctx | Click object. |
color | The color to which the screen will be colored |
Options : EINK154INCH_SCREEN_COLOR_WHITE EINK154INCH_SCREEN_COLOR_BLACK EINK154INCH_SCREEN_COLOR_LIGHT_GREY EINK154INCH_SCREEN_COLOR_DARK_GREY
void eink154inch_image | ( | eink154inch_t * | ctx, |
const uint8_t * | image_buffer ) |
Displays image.
ctx | Click object. |
image | Buffer containing the image |
The image can be built from VTFT or image2lcd programs, and image type must be monochrome bmp.
err_t eink154inch_init | ( | eink154inch_t * | ctx, |
eink154inch_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void eink154inch_reset | ( | eink154inch_t * | ctx | ) |
Reset chip.
ctx | Click object. |
void eink154inch_send_cmd | ( | eink154inch_t * | ctx, |
uint8_t | command ) |
Sending a command.
ctx | Click object. |
command | The command to be sent |
void eink154inch_send_data | ( | eink154inch_t * | ctx, |
uint8_t | c_data ) |
Sending data.
ctx | Click object. |
c_data | The data to be sent |
void eink154inch_set_font | ( | eink154inch_t * | ctx, |
eink154inch_font_t * | cfg_font ) |
Set text font.
ctx | Click object. |
cfg_font | Struct object. |
void eink154inch_set_lut | ( | eink154inch_t * | ctx, |
const uint8_t * | lut, | ||
uint8_t | n_bytes ) |
Set LUT table.
ctx | Click object. |
lut | Lut table |
n_bytes | Number of bytes in Lut table |
@Note Changing the "lut table" can change the display's performance.
void eink154inch_set_mem_area | ( | eink154inch_t * | ctx, |
eink154inch_xy_t * | xy ) |
Setting area in memory.
ctx | Click object. |
xy | Struct object. |
void eink154inch_set_mem_pointer | ( | eink154inch_t * | ctx, |
uint8_t | x, | ||
uint8_t | y ) |
Setting pointers in memory.
ctx | Click object. |
x | x position |
y | y position |
void eink154inch_sleep_mode | ( | eink154inch_t * | ctx | ) |
Sleep mode.
ctx | Click object. |
void eink154inch_start_config | ( | eink154inch_t * | ctx | ) |
Configuration display.
ctx | Click object. |
void eink154inch_text | ( | eink154inch_t * | ctx, |
char * | text, | ||
eink154inch_text_set_t * | text_set ) |
Draw text on the screen.
ctx | Click object. |
text | Text buffer |
text_set | Struct object. |
void eink154inch_update_display | ( | eink154inch_t * | ctx | ) |
Update dispaly.
ctx | Click object. |