lcdmono 2.0.0.0
Public function

Functions

void lcdmono_cfg_setup (lcdmono_cfg_t *cfg)
 Config Object Initialization function.
 
err_t lcdmono_init (lcdmono_t *ctx, lcdmono_cfg_t *cfg)
 Initialization function.
 
void lcdmono_send_line_package (lcdmono_t *ctx, uint8_t addr, uint8_t *__generic_ptr tx_data)
 Send line data package.
 
void lcdmono_clear (lcdmono_t *ctx)
 Clear display.
 
void lcdmono_draw_frame (lcdmono_t *ctx, uint8_t *__generic_ptr frame_data)
 Displays draw frame.
 
void lcdmono_draw_text (lcdmono_t *ctx, uint8_t *__generic_ptr text_buf, lcdmono_text_settings_t *tx_set, uint8_t end_mode)
 Draw text on the screen.
 
void lcdmono_set_font (lcdmono_t *ctx, lcdmono_font_t *dev_lcd_font)
 Set font.
 
void lcdmono_display_power (lcdmono_t *ctx, uint8_t ctrl)
 Display Power State.
 
void lcdmono_display_reset (lcdmono_t *ctx)
 Reset procedure.
 

Detailed Description

Function Documentation

◆ lcdmono_cfg_setup()

void lcdmono_cfg_setup ( lcdmono_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.

◆ lcdmono_clear()

void lcdmono_clear ( lcdmono_t * ctx)

Clear display.

Parameters
ctxClick object.

◆ lcdmono_display_power()

void lcdmono_display_power ( lcdmono_t * ctx,
uint8_t ctrl )

Display Power State.

Parameters
ctxClick object.
ctrlPower on or power off display

◆ lcdmono_display_reset()

void lcdmono_display_reset ( lcdmono_t * ctx)

Reset procedure.

Parameters
ctxClick object.

◆ lcdmono_draw_frame()

void lcdmono_draw_frame ( lcdmono_t * ctx,
uint8_t *__generic_ptr frame_data )

Displays draw frame.

Parameters
ctxClick object.
frame_dataBuffer the frame data [ or image ]
Note
The image can be built from VTFT or image2lcd programs The image type monochrome bmp 128x128px

◆ lcdmono_draw_text()

void lcdmono_draw_text ( lcdmono_t * ctx,
uint8_t *__generic_ptr text_buf,
lcdmono_text_settings_t * tx_set,
uint8_t end_mode )

Draw text on the screen.

Parameters
ctxClick object.
text_bufText buffer
tx_setText settings - Structure for settings text
end_modeMode

Mode options:

  • REFRESH_TEXT_BUFFER - Reset the main frame buffer.
  • CHECK_NEW_TEXT - Insert text into the main frame buffer - no update display
  • REFRESH_DISPLAY_END - Insert text into the main frame buffer - with the update display

◆ lcdmono_init()

err_t lcdmono_init ( lcdmono_t * ctx,
lcdmono_cfg_t * cfg )

Initialization function.

Parameters
lcdmonoClick object.
cfgClick configuration structure.

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

◆ lcdmono_send_line_package()

void lcdmono_send_line_package ( lcdmono_t * ctx,
uint8_t addr,
uint8_t *__generic_ptr tx_data )

Send line data package.

Parameters
ctxClick object.
addrLine address [from 1 to 128]
tx_data16 bytes[128 bits] data

Function just adding a command to display update and 2 x Dummy data at the end

◆ lcdmono_set_font()

void lcdmono_set_font ( lcdmono_t * ctx,
lcdmono_font_t * dev_lcd_font )

Set font.

Parameters
ctxClick object.
dev_lcd_fontSelect new active font