mikroSDK Reference Manual
LCD Controller

Generic liquid crystal display controller specific APIs. More...

Functions list

void hd44780_lcd_init (uint32_t lcd_handle)
 Initializes LCD. More...
 

Detailed Description

Function Documentation

◆ hd44780_lcd_init()

void hd44780_lcd_init ( uint32_t  lcd_handle)

Initializes HD44780 LCD controller with default values.

Parameters
[in]lcd_handleLCD handle address. See lcd_handle_t structure definition for detailed explanation.
Returns
Nothing.

Example

// LCD handle.
// LCD config structure.
lcd_config_t lcd_cfg;
// Fill structure with default values.
// Set default pins.
LCD_MAP_PINS(lcd_cfg);
// Initialize handle and pins.
lcd_configure(&lcd, &lcd_cfg);
// Initialize LCD if used from LCD source.
// hd44780_lcd_init(&lcd); // If used directly through this API.
Note
Can be used with controllers similar to HD44780.
Dclared as weak so user can link their own API.
lcd_configure_default
void lcd_configure_default(lcd_config_t *config)
Configure LCD configuration structure.
hd44780_lcd_init
void hd44780_lcd_init(uint32_t lcd_handle)
Initializes LCD.
lcd_config
Definition: lcd.h:144
LCD_MAP_PINS
#define LCD_MAP_PINS(lcd_cfg)
Mapping default LCD control and data pins.
Definition: lcd.h:73
lcd_handle
Definition: lcd.h:189
lcd_init
void lcd_init(lcd_handle_t lcd_handle, init_sequence_ptr init_sequence)
Initializes LCD.
lcd_configure
lcd_err_t lcd_configure(lcd_handle_t *lcd_handle, lcd_config_t *config)
Configures LCD handle with passed configuration structure.