I2CLCD
HD4470 LCD driver via I2C interface
|
Functions | |
void | lcd_init (void) |
Display initialization sequence. More... | |
void | lcd_command (uint8_t command) |
Issue a command to the display. More... | |
bool | lcd_gotolc (uint8_t line, uint8_t col) |
Go to position. More... | |
void | lcd_putchar (char value) |
Put char to cursor position. More... | |
bool | lcd_putcharlc (uint8_t line, uint8_t col, char value) |
Put char to position. More... | |
void | lcd_print (char *string) |
Print string to cursor position. More... | |
void | lcd_print_P (PGM_P string) |
Print string from Flash to cursor position. More... | |
bool | lcd_printlc (uint8_t line, uint8_t col, char *string) |
Print string to position (If string is longer than LCD_COLS overwrite first chars in line) More... | |
bool | lcd_printlc_P (uint8_t line, uint8_t col, PGM_P string) |
Print string from Flash to position (If string is longer than LCD_COLS overwrite first chars in line) More... | |
bool | lcd_printlcc (uint8_t line, uint8_t col, char *string) |
Print string to position (If string is longer than LCD_COLS continue in next line) More... | |
bool | lcd_printlcc_P (uint8_t line, uint8_t col, PGM_P string) |
Print string from flash to position (If string is longer than LCD_COLS continue in next line) More... | |
bool | lcd_nextline (void) |
Go to nextline (if next line > LCD_LINES return false) More... | |
bool | lcd_getlc (uint8_t *line, uint8_t *col) |
Get line and col of the cursor position. More... | |
bool | lcd_busy (void) |
Check if LCD is busy. More... | |
void | lcd_light (bool light) |
Turn backlight ON/OFF. More... | |
void | lcd_def_char (PGM_P chardata, uint8_t number) |
Define a user character. More... | |
bool lcd_busy | ( | void | ) |
Check if LCD is busy.
true | if busy |
false | if not busy |
void lcd_command | ( | uint8_t | command | ) |
Issue a command to the display.
command | use the defined commands above |
void lcd_def_char | ( | PGM_P | chardata, |
uint8_t | number | ||
) |
Define a user character.
chardata | pointer to char data in flash |
number | code of user char (0-7) |
bool lcd_getlc | ( | uint8_t * | line, |
uint8_t * | col | ||
) |
Get line and col of the cursor position.
*line | pointer to the target byte for line |
*col | pointer to the target byte for column |
true | if successfull |
false | if not successfull |
bool lcd_gotolc | ( | uint8_t | line, |
uint8_t | col | ||
) |
Go to position.
line | 1st line is 1 and last line = LCD_LINES |
col | 1st col is 1 and last col = LCD_colS |
true | if successfull |
false | if not successfull |
void lcd_init | ( | void | ) |
Display initialization sequence.
void lcd_light | ( | bool | light | ) |
Turn backlight ON/OFF.
light | true to tun light ON |
light | false to turn light OFF |
bool lcd_nextline | ( | void | ) |
Go to nextline (if next line > LCD_LINES return false)
true | if successfull |
false | if not successfull |
void lcd_print | ( | char * | string | ) |
Print string to cursor position.
*string | pointer to the string to print |
void lcd_print_P | ( | PGM_P | string | ) |
Print string from Flash to cursor position.
*string | pointer to the string to print |
bool lcd_printlc | ( | uint8_t | line, |
uint8_t | col, | ||
char * | string | ||
) |
Print string to position (If string is longer than LCD_COLS overwrite first chars in line)
line | the line to put the string to |
col | the column to put the string to |
*string | pointer to the string to print |
true | if successfull |
false | if not successfull |
bool lcd_printlc_P | ( | uint8_t | line, |
uint8_t | col, | ||
PGM_P | string | ||
) |
Print string from Flash to position (If string is longer than LCD_COLS overwrite first chars in line)
line | the line to put the string to |
col | the column to put the string to |
*string | pointer to the string to print |
true | if successfull |
false | if not successfull |
bool lcd_printlcc | ( | uint8_t | line, |
uint8_t | col, | ||
char * | string | ||
) |
Print string to position (If string is longer than LCD_COLS continue in next line)
line | the line to put the string to |
col | the col to put the string to |
*string | pointer to the string to print |
true | if successfull |
false | if not successfull |
bool lcd_printlcc_P | ( | uint8_t | line, |
uint8_t | col, | ||
PGM_P | string | ||
) |
Print string from flash to position (If string is longer than LCD_COLS continue in next line)
line | the line to put the string to |
col | the col to put the string to |
*string | pointer to the string to print |
true | if successfull |
false | if not successfull |
void lcd_putchar | ( | char | value | ) |
Put char to cursor position.
value | the char to print |
bool lcd_putcharlc | ( | uint8_t | line, |
uint8_t | col, | ||
char | value | ||
) |
Put char to position.
line | the line to put the char to |
col | the column to put the char to |
value | the char to print |
true | if successfull |
false | if not successfull |