eink_200inch  2.0.0.0
Functions

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...
 

Detailed Description

Function Documentation

◆ eink200_display_image()

void eink200_display_image ( eink_200inch_t ctx,
const uint8_t *  image_buffer 
)

Displays image.

Parameters
ctxClick object.
imageBuffer containing the image

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

◆ eink200_fill_screen()

void eink200_fill_screen ( eink_200inch_t ctx,
uint8_t  color 
)

Function that fills the screen.

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

◆ eink200_reset()

void eink200_reset ( eink_200inch_t ctx)

Reset chip.

Parameters
ctxClick object.

◆ eink200_send_command()

void eink200_send_command ( eink_200inch_t ctx,
uint8_t  command 
)

Sending a command.

Parameters
ctxClick object.
commandThe command to be sent

◆ eink200_send_data()

void eink200_send_data ( eink_200inch_t ctx,
uint8_t  c_data 
)

Sending data.

Parameters
ctxClick object.
c_dataThe data to be sent

◆ eink200_set_font()

void eink200_set_font ( eink_200inch_t ctx,
eink_200inch_font_t cfg_font 
)

Set text font.

Parameters
ctxClick object.
cfg_fontStruct object.

◆ eink200_set_lut()

void eink200_set_lut ( eink_200inch_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.

◆ eink200_set_memory_area()

void eink200_set_memory_area ( eink_200inch_t ctx,
eink_200_xy_t xy 
)

Setting area in memory.

Parameters
ctxClick object.
xyStruct object.

◆ eink200_set_memory_pointer()

void eink200_set_memory_pointer ( eink_200inch_t ctx,
uint8_t  x,
uint8_t  y 
)

Setting pointers in memory.

Parameters
ctxClick object.
xx position
yy position

◆ eink200_sleep_mode()

void eink200_sleep_mode ( eink_200inch_t ctx)

Sleep mode.

Parameters
ctxClick object.

◆ eink200_start_config()

void eink200_start_config ( eink_200inch_t ctx)

Configuration display.

Parameters
ctxClick object.

◆ eink200_text()

void eink200_text ( eink_200inch_t ctx,
char *  text,
eink_200_text_set_t text_set 
)

Draw text on the screen.

Parameters
ctxClick object.
textText buffer
text_setStruct object.

◆ eink200_update_display()

void eink200_update_display ( eink_200inch_t ctx)

Update dispaly.

Parameters
ctxClick object.

◆ eink_200inch_cfg_setup()

void eink_200inch_cfg_setup ( eink_200inch_cfg_t cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ eink_200inch_generic_transfer()

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.

Parameters
ctxClick object.
wr_bufWrite data buffer
wr_lenNumber of byte in write data buffer
rd_bufRead data buffer
rd_lenNumber of byte in read data buffer

@description Generic SPI transfer, for sending and receiving packages

◆ eink_200inch_init()

EINK_200INCH_RETVAL eink_200inch_init ( eink_200inch_t ctx,
eink_200inch_cfg_t cfg 
)

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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