eink290inch 2.0.0.0

Functions

void eink290inch_cfg_setup (eink290inch_cfg_t *cfg)
 Config Object Initialization function.
 
err_t eink290inch_init (eink290inch_t *ctx, eink290inch_cfg_t *cfg)
 Initialization function.
 
void eink290inch_send_cmd (eink290inch_t *ctx, uint8_t command)
 Function for sending a command.
 
void eink290inch_send_data (eink290inch_t *ctx, uint8_t c_data)
 Function for sending data.
 
void eink290inch_reset (eink290inch_t *ctx)
 Function for reset chip.
 
void eink290inch_sleep_mode (eink290inch_t *ctx)
 Function for go to sleep mode.
 
void eink290inch_set_lut (eink290inch_t *ctx, const uint8_t *lut, uint8_t lut_cnt)
 Set LUT table.
 
void eink290inch_start_config (eink290inch_t *ctx)
 Start configuration display.
 
void eink290inch_set_mem_pointer (eink290inch_t *ctx, uint16_t x, uint16_t y)
 Function for setting pointers in memory.
 
void eink290inch_set_mem_area (eink290inch_t *ctx, eink290inch_xy_t *xy)
 Function for setting area in memory.
 
void eink290inch_update_display (eink290inch_t *ctx)
 Functions for update dispaly.
 
void eink290inch_fill_screen (eink290inch_t *ctx, uint8_t color)
 Function that fills the screen.
 
void eink290inch_display_image (eink290inch_t *ctx, const uint8_t *image_buffer)
 Display image function.
 
void eink290inch_text (eink290inch_t *ctx, uint8_t *text, eink290inch_set_text_t *text_set)
 Function for draw text on the screen.
 
void eink290inch_set_font (eink290inch_t *ctx, eink290inch_font_t *cfg_font)
 Set font function.
 

Detailed Description

Function Documentation

◆ eink290inch_cfg_setup()

void eink290inch_cfg_setup ( eink290inch_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ eink290inch_display_image()

void eink290inch_display_image ( eink290inch_t * ctx,
const uint8_t * image_buffer )

Display image function.

Parameters
ctxClick object.
imageBuffer containing the image

The image can be built from VTFT or image2lcd programs

Note
The image type must be monochrome bmp

◆ eink290inch_fill_screen()

void eink290inch_fill_screen ( eink290inch_t * ctx,
uint8_t color )

Function that fills the screen.

Parameters
ctxClick object.
colorThe color to which the screen will be colored
Note
Options : EINK290INCH_SCREEN_COLOR_WHITE EINK290INCH_SCREEN_COLOR_BLACK EINK290INCH_SCREEN_COLOR_LIGHT_GREY EINK290INCH_SCREEN_COLOR_DARK_GREY

◆ eink290inch_init()

err_t eink290inch_init ( eink290inch_t * ctx,
eink290inch_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

This function initializes all necessary pins and peripherals used for this click.

◆ eink290inch_reset()

void eink290inch_reset ( eink290inch_t * ctx)

Function for reset chip.

Parameters
ctxClick object.

◆ eink290inch_send_cmd()

void eink290inch_send_cmd ( eink290inch_t * ctx,
uint8_t command )

Function for sending a command.

Parameters
ctxClick object.
commandThe command to be sent

◆ eink290inch_send_data()

void eink290inch_send_data ( eink290inch_t * ctx,
uint8_t c_data )

Function for sending data.

Parameters
ctxClick object.
c_dataThe data to be sent

◆ eink290inch_set_font()

void eink290inch_set_font ( eink290inch_t * ctx,
eink290inch_font_t * cfg_font )

Set font function.

Parameters
ctxClick object.
cfg_fontStruct object

◆ eink290inch_set_lut()

void eink290inch_set_lut ( eink290inch_t * ctx,
const uint8_t * lut,
uint8_t lut_cnt )

Set LUT table.

Parameters
ctxClick object.
lutLut table
n_bytesNumber of bytes in Lut table

@Note Changing the "lut table" can change the display's performance.

◆ eink290inch_set_mem_area()

void eink290inch_set_mem_area ( eink290inch_t * ctx,
eink290inch_xy_t * xy )

Function for setting area in memory.

Parameters
ctxClick object.
xyStruct object

◆ eink290inch_set_mem_pointer()

void eink290inch_set_mem_pointer ( eink290inch_t * ctx,
uint16_t x,
uint16_t y )

Function for setting pointers in memory.

Parameters
ctxClick object.
xx position
yy position

◆ eink290inch_sleep_mode()

void eink290inch_sleep_mode ( eink290inch_t * ctx)

Function for go to sleep mode.

Parameters
ctxClick object.

◆ eink290inch_start_config()

void eink290inch_start_config ( eink290inch_t * ctx)

Start configuration display.

Parameters
ctxClick object.

◆ eink290inch_text()

void eink290inch_text ( eink290inch_t * ctx,
uint8_t * text,
eink290inch_set_text_t * text_set )

Function for draw text on the screen.

Parameters
ctxClick object.
textText buffer
text_setStruct object

◆ eink290inch_update_display()

void eink290inch_update_display ( eink290inch_t * ctx)

Functions for update dispaly.

Parameters
ctxClick object.