eink 2.0.0.0
|
Functions | |
void | eink_cfg_setup (eink_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | eink_init (eink_t *ctx, eink_cfg_t *cfg) |
Initialization function. | |
void | eink_send_cmd (eink_t *ctx, uint8_t command) |
Sending a command. | |
void | eink_send_data (eink_t *ctx, uint8_t c_data) |
Sending data. | |
void | eink_reset (eink_t *ctx) |
Reset chip. | |
void | eink_sleep_mode (eink_t *ctx) |
Sleep mode. | |
void | eink_start_config (eink_t *ctx) |
Configuration display. | |
void | eink_set_lut (eink_t *ctx, const uint8_t *lut, uint8_t n_bytes) |
Set LUT table. | |
void | eink_set_mem_pointer (eink_t *ctx, uint8_t x, uint8_t y) |
Setting pointers in memory. | |
void | eink_set_mem_area (eink_t *ctx, eink_xy_t *xy) |
Setting area in memory. | |
void | eink_update_display (eink_t *ctx) |
Update dispaly. | |
void | eink_fill_screen (eink_t *ctx, uint8_t color) |
Function that fills the screen. | |
void | eink_display_image (eink_t *ctx, const uint8_t *image_buffer) |
Displays image. | |
void | eink_text (eink_t *ctx, uint8_t *text, eink_text_set_t *text_set) |
Draw text on the screen. | |
void | eink_set_font (eink_t *ctx, eink200inch_font_t *cfg_font) |
Set text font. | |
void eink_cfg_setup | ( | eink_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void eink_display_image | ( | eink_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.
void eink_fill_screen | ( | eink_t * | ctx, |
uint8_t | color ) |
Function that fills the screen.
ctx | Click object. |
color | The color to which the screen will be colored |
Options : EINK_SCREEN_COLOR_WHITE EINK_SCREEN_COLOR_BLACK EINK_SCREEN_COLOR_LIGHT_GREY EINK_SCREEN_COLOR_DARK_GREY
err_t eink_init | ( | eink_t * | ctx, |
eink_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 eink_reset | ( | eink_t * | ctx | ) |
Reset chip.
ctx | Click object. |
void eink_send_cmd | ( | eink_t * | ctx, |
uint8_t | command ) |
Sending a command.
ctx | Click object. |
command | The command to be sent |
void eink_send_data | ( | eink_t * | ctx, |
uint8_t | c_data ) |
Sending data.
ctx | Click object. |
c_data | The data to be sent |
void eink_set_font | ( | eink_t * | ctx, |
eink200inch_font_t * | cfg_font ) |
Set text font.
ctx | Click object. |
cfg_font | Struct object. |
void eink_set_lut | ( | eink_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.
Setting area in memory.
ctx | Click object. |
xy | Struct object. |
void eink_set_mem_pointer | ( | eink_t * | ctx, |
uint8_t | x, | ||
uint8_t | y ) |
Setting pointers in memory.
ctx | Click object. |
x | x position |
y | y position |
void eink_sleep_mode | ( | eink_t * | ctx | ) |
Sleep mode.
ctx | Click object. |
void eink_start_config | ( | eink_t * | ctx | ) |
Configuration display.
ctx | Click object. |
void eink_text | ( | eink_t * | ctx, |
uint8_t * | text, | ||
eink_text_set_t * | text_set ) |
Draw text on the screen.
ctx | Click object. |
text | Text buffer |
text_set | Struct object. |
void eink_update_display | ( | eink_t * | ctx | ) |
Update dispaly.
ctx | Click object. |