eink213inch  2.0.0.0
Functions

Functions

void eink213inch_cfg_setup (eink213inch_cfg_t *cfg)
 Config Object Initialization function. More...
 
err_t eink213inch_init (eink213inch_t *ctx, eink213inch_cfg_t *cfg)
 Initialization function. More...
 
void eink213inch_send_cmd (eink213inch_t *ctx, uint8_t command)
 Function for sending a command. More...
 
void eink213inch_send_data (eink213inch_t *ctx, uint8_t c_data)
 Function for sending data. More...
 
void eink213inch_reset (eink213inch_t *ctx)
 Function for reset chip. More...
 
void eink213inch_sleep_mode (eink213inch_t *ctx)
 Function for go to sleep mode. More...
 
void eink213inch_set_lut (eink213inch_t *ctx, const uint8_t *lut, uint8_t n_bytes)
 Set LUT table. More...
 
void eink213inch_start_config (eink213inch_t *ctx)
 Start configuration display. More...
 
void eink213inch_set_mem_pointer (eink213inch_t *ctx, uint16_t x, uint16_t y)
 Function for setting pointers in memory. More...
 
void eink213inch_set_mem_area (eink213inch_t *ctx, eink213inch_xy_t *xy)
 Function for setting area in memory. More...
 
void eink213inch_update_display (eink213inch_t *ctx)
 Functions for update display. More...
 
void eink213inch_fill_screen (eink213inch_t *ctx, uint8_t color)
 Function that fills the screen. More...
 
void eink213inch_display_image (eink213inch_t *ctx, const uint8_t *image_buffer)
 Display image function. More...
 
void eink213inch_text (eink213inch_t *ctx, uint8_t *text, eink213inch_set_text_t *text_set)
 Function for draw text on the screen. More...
 
void eink213inch_set_font (eink213inch_t *ctx, eink213inch_font_t *cfg_font)
 Set font function. More...
 

Detailed Description

Function Documentation

◆ eink213inch_cfg_setup()

void eink213inch_cfg_setup ( eink213inch_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.

◆ eink213inch_display_image()

void eink213inch_display_image ( eink213inch_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

◆ eink213inch_fill_screen()

void eink213inch_fill_screen ( eink213inch_t ctx,
uint8_t  color 
)

Function that fills the screen.

Parameters
ctxClick object.
colorThe color to which the screen will be colored
Note
Options : EINK213INCH_SCREEN_COLOR_WHITE EINK213INCH_SCREEN_COLOR_BLACK EINK213INCH_SCREEN_COLOR_LIGHT_GREY EINK213INCH_SCREEN_COLOR_DARK_GREY

◆ eink213inch_init()

err_t eink213inch_init ( eink213inch_t ctx,
eink213inch_cfg_t cfg 
)

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ eink213inch_reset()

void eink213inch_reset ( eink213inch_t ctx)

Function for reset chip.

Parameters
ctxClick object.

◆ eink213inch_send_cmd()

void eink213inch_send_cmd ( eink213inch_t ctx,
uint8_t  command 
)

Function for sending a command.

Parameters
ctxClick object.
commandThe command to be sent

◆ eink213inch_send_data()

void eink213inch_send_data ( eink213inch_t ctx,
uint8_t  c_data 
)

Function for sending data.

Parameters
ctxClick object.
c_dataThe data to be sent

◆ eink213inch_set_font()

void eink213inch_set_font ( eink213inch_t ctx,
eink213inch_font_t cfg_font 
)

Set font function.

Parameters
ctxClick object.
cfg_fontStruct object

◆ eink213inch_set_lut()

void eink213inch_set_lut ( eink213inch_t ctx,
const uint8_t *  lut,
uint8_t  n_bytes 
)

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.

◆ eink213inch_set_mem_area()

void eink213inch_set_mem_area ( eink213inch_t ctx,
eink213inch_xy_t xy 
)

Function for setting area in memory.

Parameters
ctxClick object.
xyStruct object

◆ eink213inch_set_mem_pointer()

void eink213inch_set_mem_pointer ( eink213inch_t ctx,
uint16_t  x,
uint16_t  y 
)

Function for setting pointers in memory.

Parameters
ctxClick object.
xx position
yy position

◆ eink213inch_sleep_mode()

void eink213inch_sleep_mode ( eink213inch_t ctx)

Function for go to sleep mode.

Parameters
ctxClick object.

◆ eink213inch_start_config()

void eink213inch_start_config ( eink213inch_t ctx)

Start configuration display.

Parameters
ctxClick object.

◆ eink213inch_text()

void eink213inch_text ( eink213inch_t ctx,
uint8_t *  text,
eink213inch_set_text_t text_set 
)

Function for draw text on the screen.

Parameters
ctxClick object.
textText buffer
text_setStruct object

◆ eink213inch_update_display()

void eink213inch_update_display ( eink213inch_t ctx)

Functions for update display.

Parameters
ctxClick object.