Defines | |||
![]() | ![]() | #define | LCD_SHORT_CMD |
![]() | ![]() | #define | LCD_LONG_CMD |
![]() | ![]() | #define | LCD_DATA_OFFSET |
![]() | ![]() | #define | LCD_DATA_SIZE |
![]() | ![]() | #define | LCD_MODE_SET |
![]() | ![]() | #define | LCD_ENABLE |
![]() | ![]() | #define | LCD_DISABLE |
![]() | ![]() | #define | LCD_DEV_ID |
![]() | ![]() | #define | I2C_WRITE |
![]() | ![]() | #define | I2C_READ |
![]() | ![]() | #define | SCL |
![]() | ![]() | #define | SDA |
Functions | |||
![]() | ![]() | void | lcd_init (void) |
![]() | ![]() | initialize LCD driver. More... | |
![]() | ![]() | void | lcd_power_on (void) |
![]() | ![]() | power on LCD display, also called from lcd_init(). More... | |
![]() | ![]() | void | lcd_power_off (void) |
![]() | ![]() | power off LCD display. More... | |
![]() | ![]() | void | lcd_refresh (void) |
![]() | ![]() | show LCD display contents to the world. More... | |
![]() | ![]() | void | lcd_refresh_next_byte (void) |
![]() | ![]() | show LCD display contents to the world. More... | |
Variables | |||
![]() | ![]() | unsigned char | display_memory [] |
![]() | ![]() | LCD display data buffer. |
#define LCD_SHORT_CMD () |
#define LCD_LONG_CMD () |
#define LCD_DATA_OFFSET () |
#define LCD_DATA_SIZE () |
#define LCD_MODE_SET () |
#define LCD_ENABLE () |
#define LCD_DISABLE () |
#define LCD_DEV_ID () |
#define I2C_WRITE () |
#define I2C_READ () |
#define SCL () |
#define SDA () |
void lcd_init (void) |
initialize LCD driver.
output drivers are configured as outputs. the lcd_shadow buffer is cleared and initialized. the LCD controller is enabled.
void lcd_power_on (void) |
power on LCD display, also called from lcd_init().
the LCD controller is enabled.
void lcd_power_off (void) |
power off LCD display.
the LCD controller is put in low power mode and output drivers to the LCD controller are disabled.
Note: without disabling the output drivers the CPU will not save power in sleep mode.
void lcd_refresh (void) |
show LCD display contents to the world.
the entire 9 bytes of display_memory are written to the LCD controller unconditionally. lcd_shadow is updated to the new values.
void lcd_refresh_next_byte (void) |
show LCD display contents to the world.
display updates are realized on a byte basis by calling this function: the complete display will be updated after 9 calls.
unsigned char display_memory[] |
LCD display data buffer.