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.
 

Detailed Description

Function Documentation

◆ eink154inch_cfg_setup()

void eink154inch_cfg_setup ( eink154inch_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.

◆ eink154inch_fill_screen()

void eink154inch_fill_screen ( eink154inch_t * ctx,
uint8_t color )

Function that fills the screen.

Parameters
ctxClick object.
colorThe 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

◆ eink154inch_image()

void eink154inch_image ( eink154inch_t * ctx,
const uint8_t * image_buffer )

Displays image.

Parameters
ctxClick object.
imageBuffer containing the image

The image can be built from VTFT or image2lcd programs, and image type must be monochrome bmp.

◆ eink154inch_init()

err_t eink154inch_init ( eink154inch_t * ctx,
eink154inch_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ eink154inch_reset()

void eink154inch_reset ( eink154inch_t * ctx)

Reset chip.

Parameters
ctxClick object.

◆ eink154inch_send_cmd()

void eink154inch_send_cmd ( eink154inch_t * ctx,
uint8_t command )

Sending a command.

Parameters
ctxClick object.
commandThe command to be sent

◆ eink154inch_send_data()

void eink154inch_send_data ( eink154inch_t * ctx,
uint8_t c_data )

Sending data.

Parameters
ctxClick object.
c_dataThe data to be sent

◆ eink154inch_set_font()

void eink154inch_set_font ( eink154inch_t * ctx,
eink154inch_font_t * cfg_font )

Set text font.

Parameters
ctxClick object.
cfg_fontStruct object.

◆ eink154inch_set_lut()

void eink154inch_set_lut ( eink154inch_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.

◆ eink154inch_set_mem_area()

void eink154inch_set_mem_area ( eink154inch_t * ctx,
eink154inch_xy_t * xy )

Setting area in memory.

Parameters
ctxClick object.
xyStruct object.

◆ eink154inch_set_mem_pointer()

void eink154inch_set_mem_pointer ( eink154inch_t * ctx,
uint8_t x,
uint8_t y )

Setting pointers in memory.

Parameters
ctxClick object.
xx position
yy position

◆ eink154inch_sleep_mode()

void eink154inch_sleep_mode ( eink154inch_t * ctx)

Sleep mode.

Parameters
ctxClick object.

◆ eink154inch_start_config()

void eink154inch_start_config ( eink154inch_t * ctx)

Configuration display.

Parameters
ctxClick object.

◆ eink154inch_text()

void eink154inch_text ( eink154inch_t * ctx,
char * text,
eink154inch_text_set_t * text_set )

Draw text on the screen.

Parameters
ctxClick object.
textText buffer
text_setStruct object.

◆ eink154inch_update_display()

void eink154inch_update_display ( eink154inch_t * ctx)

Update dispaly.

Parameters
ctxClick object.