mikroSDK Reference Manual
lcd_config Struct Reference

Data Fields

pin_name_t pin_cs
 LCD control pins. More...
 
pin_name_t pin_rst
 
pin_name_t pin_backlight
 
pin_name_t pin_d0
 LCD data pins. More...
 
pin_name_t pin_d1
 
pin_name_t pin_d2
 
pin_name_t pin_d3
 
pin_name_t pin_d4
 
pin_name_t pin_d5
 
pin_name_t pin_d6
 
pin_name_t pin_d7
 
lcd_mode_t mode
 LCD mode. More...
 
uint16_t waitBetweenWrites
 Time to wait before generating a pulse on CS line. More...
 

Detailed Description

Main cofiguration structure.

Field Documentation

◆ pin_cs

pin_name_t lcd_config::pin_cs

CS/EN pin.

◆ pin_rst

pin_name_t lcd_config::pin_rst

RST pin.

◆ pin_backlight

pin_name_t lcd_config::pin_backlight

Backlight pin.

◆ pin_d0

pin_name_t lcd_config::pin_d0

Data pin 0.

◆ pin_d1

pin_name_t lcd_config::pin_d1

Data pin 1.

◆ pin_d2

pin_name_t lcd_config::pin_d2

Data pin 2.

◆ pin_d3

pin_name_t lcd_config::pin_d3

Data pin 3.

◆ pin_d4

pin_name_t lcd_config::pin_d4

Data pin 4.

◆ pin_d5

pin_name_t lcd_config::pin_d5

Data pin 5.

◆ pin_d6

pin_name_t lcd_config::pin_d6

Data pin 6.

◆ pin_d7

pin_name_t lcd_config::pin_d7

Data pin 7.

◆ mode

lcd_mode_t lcd_config::mode

Can be either 4 or 8 bit. Data mode. See lcd_mode_t.

◆ waitBetweenWrites

uint16_t lcd_config::waitBetweenWrites

Some MCUs need a higher wait time than others.

Note
Wait time generates defined waitBetweenWrites number of NOP instructions before continuing. Time between strobes.