eink_200inch
2.0.0.0
|
Functions | |
void | eink_200inch_cfg_setup (eink_200inch_cfg_t *cfg) |
Config Object Initialization function. More... | |
EINK_200INCH_RETVAL | eink_200inch_init (eink_200inch_t *ctx, eink_200inch_cfg_t *cfg) |
Initialization function. More... | |
void | eink_200inch_generic_transfer (eink_200inch_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
void | eink200_send_command (eink_200inch_t *ctx, uint8_t command) |
Sending a command. More... | |
void | eink200_send_data (eink_200inch_t *ctx, uint8_t c_data) |
Sending data. More... | |
void | eink200_reset (eink_200inch_t *ctx) |
Reset chip. More... | |
void | eink200_sleep_mode (eink_200inch_t *ctx) |
Sleep mode. More... | |
void | eink200_start_config (eink_200inch_t *ctx) |
Configuration display. More... | |
void | eink200_set_lut (eink_200inch_t *ctx, const uint8_t *lut, uint8_t n_bytes) |
Set LUT table. More... | |
void | eink200_set_memory_pointer (eink_200inch_t *ctx, uint8_t x, uint8_t y) |
Setting pointers in memory. More... | |
void | eink200_set_memory_area (eink_200inch_t *ctx, eink_200_xy_t *xy) |
Setting area in memory. More... | |
void | eink200_update_display (eink_200inch_t *ctx) |
Update dispaly. More... | |
void | eink200_fill_screen (eink_200inch_t *ctx, uint8_t color) |
Function that fills the screen. More... | |
void | eink200_display_image (eink_200inch_t *ctx, const uint8_t *image_buffer) |
Displays image. More... | |
void | eink200_text (eink_200inch_t *ctx, char *text, eink_200_text_set_t *text_set) |
Draw text on the screen. More... | |
void | eink200_set_font (eink_200inch_t *ctx, eink_200inch_font_t *cfg_font) |
Set text font. More... | |
void eink200_display_image | ( | eink_200inch_t * | ctx, |
const uint8_t * | image_buffer | ||
) |
Displays image.
ctx | Click object. |
image | Buffer containing the image |
@description The image can be built from VTFT or image2lcd programs, and image type must be monochrome bmp.
void eink200_fill_screen | ( | eink_200inch_t * | ctx, |
uint8_t | color | ||
) |
Function that fills the screen.
ctx | Click object. |
color | The color to which the screen will be colored |
Options : EINK290_SCREEN_COLOR_WHITE EINK290_SCREEN_COLOR_BLACK EINK290_SCREEN_COLOR_LIGHT_GREY EINK290_SCREEN_COLOR_DARK_GREY
void eink200_reset | ( | eink_200inch_t * | ctx | ) |
Reset chip.
ctx | Click object. |
void eink200_send_command | ( | eink_200inch_t * | ctx, |
uint8_t | command | ||
) |
Sending a command.
ctx | Click object. |
command | The command to be sent |
void eink200_send_data | ( | eink_200inch_t * | ctx, |
uint8_t | c_data | ||
) |
Sending data.
ctx | Click object. |
c_data | The data to be sent |
void eink200_set_font | ( | eink_200inch_t * | ctx, |
eink_200inch_font_t * | cfg_font | ||
) |
Set text font.
ctx | Click object. |
cfg_font | Struct object. |
void eink200_set_lut | ( | eink_200inch_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 eink200_set_memory_area | ( | eink_200inch_t * | ctx, |
eink_200_xy_t * | xy | ||
) |
Setting area in memory.
ctx | Click object. |
xy | Struct object. |
void eink200_set_memory_pointer | ( | eink_200inch_t * | ctx, |
uint8_t | x, | ||
uint8_t | y | ||
) |
Setting pointers in memory.
ctx | Click object. |
x | x position |
y | y position |
void eink200_sleep_mode | ( | eink_200inch_t * | ctx | ) |
Sleep mode.
ctx | Click object. |
void eink200_start_config | ( | eink_200inch_t * | ctx | ) |
Configuration display.
ctx | Click object. |
void eink200_text | ( | eink_200inch_t * | ctx, |
char * | text, | ||
eink_200_text_set_t * | text_set | ||
) |
Draw text on the screen.
ctx | Click object. |
text | Text buffer |
text_set | Struct object. |
void eink200_update_display | ( | eink_200inch_t * | ctx | ) |
Update dispaly.
ctx | Click object. |
void eink_200inch_cfg_setup | ( | eink_200inch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void eink_200inch_generic_transfer | ( | eink_200inch_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len | ||
) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
EINK_200INCH_RETVAL eink_200inch_init | ( | eink_200inch_t * | ctx, |
eink_200inch_cfg_t * | cfg | ||
) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.