13#ifndef _LCD_HD_44780_H_
14#define _LCD_HD_44780_H_
77 void lcd_def_char(
const uint8_t CGRAM_bank_x_char_adr,
const uint8_t *def_char);
84 void lcd_bin(
int val, uint8_t width);
void lcd_buf_char(const char c)
Function for adding the char to the LCD buffer under the current position of the LCD buffer.
Definition: lcd_hd44780.c:624
void lcd_disable_backlight(void)
Function that disable backlight of the LCD. This function change the backlight GPIO pin state to inac...
Definition: lcd_hd44780.c:341
void lcd_enable_backlight(void)
Function for disabling backlight od the LCD.
Definition: lcd_hd44780.c:327
void lcd_load_char_bank(const lcd_bank_load_struct_t *char_bank)
Function that loads to LCD_CGRAM predefined characters form specific user char_bank.
Definition: lcd_hd44780.c:390
void lcd_home(void)
Function that moves LCD cursor to the first position at the first row of the LCD screen.
Definition: lcd_hd44780.c:565
void lcd_buf_bin(int val, uint8_t width)
Function for adding to the LCD buffer the integer value in binary format as a string under the curren...
Definition: lcd_hd44780.c:744
void lcd_cursor_on(void)
Function that activates the visibility of the LCD cursor.
Definition: lcd_hd44780.c:578
void lcd_cursor_off(void)
Function that deactivates the visibility and blinking of the LCD cursor.
Definition: lcd_hd44780.c:588
LCD_alignment_e
Labels for alignment parameter used by lcd_int() and lcd_hex() functions.
Definition: lcd_hd44780.h:27
void lcd_bin(int val, uint8_t width)
Function for printing the integer value in hexadecimal format on the LCD screen under the current pos...
Definition: lcd_hd44780.c:505
void lcd_def_char(const uint8_t CGRAM_bank_x_char_adr, const uint8_t *def_char)
Function for defining custom user characters in CGRAM of the LCD.
Definition: lcd_hd44780.c:375
void lcd_locate(enum LCD_LINES_e y, enum LCD_COLUMNS_e x)
Function that moves LCD cursor to a specific position located under the x and y coordinate.
Definition: lcd_hd44780.c:533
void lcd_buf_hex(int val, uint8_t width, enum LCD_alignment_e alignment)
Function for adding integer value in hexadecimal format as a string to the LCD buffer under the curre...
Definition: lcd_hd44780.c:719
void lcd_char(const char C)
Function for printing the char on the LCD screen under the current position of the LCD cursor.
Definition: lcd_hd44780.c:410
LCD_LINES_e
Line labels used when calling lcd_locate() or lcd_buf_locate() function.
Definition: lcd_hd44780.h:36
void lcd_str(const char *str)
Function for printing/writing the string on the LCD screen starting from the current LCD cursor posit...
Definition: lcd_hd44780.c:432
void lcd_buf_cls(void)
Function that puts spaces(0x32) in the whole LCD buffer and sets the cursor on the position of the fi...
Definition: lcd_hd44780.c:608
void lcd_blinking_cursor_on(void)
Function that activates the visibility and blinking of the LCD cursor.
Definition: lcd_hd44780.c:597
void lcd_int(int val, uint8_t width, enum LCD_alignment_e alignment)
Function for printing the integer value on the LCD screen under the current position of the LCD curso...
Definition: lcd_hd44780.c:451
void lcd_buf_int(int val, uint8_t width, enum LCD_alignment_e alignment)
Function for adding integer value as string to the LCD buffer under the current position of the LCD b...
Definition: lcd_hd44780.c:692
void lcd_buf_str(const char *str)
Function for placing the string in the LCD buffer starts from the current LCD buffer position pointer...
Definition: lcd_hd44780.c:646
void lcd_hex(int val, uint8_t width, enum LCD_alignment_e alignment)
Function for printing the integer value in hexadecimal format on the LCD screen under the current pos...
Definition: lcd_hd44780.c:479
LCD_COLUMNS_e
Column labels used when calling lcd_locate() or lcd_buf_locate() function.
Definition: lcd_hd44780.h:49
void lcd_buf_locate(enum LCD_LINES_e y, enum LCD_COLUMNS_e x)
Function that changes the current LCD buffer position pointer to a specific position located under th...
Definition: lcd_hd44780.c:637
void lcd_update(void)
Function that prints on the LCD screen the content of The LCD buffer. The function sets also The LCD ...
Definition: lcd_hd44780.c:660
void lcd_cls(void)
Function that clears the LCD screen and sets the cursor on the position of the first character in the...
Definition: lcd_hd44780.c:354
@ left
pass as argument when calling lcd_int() or lcd_buf_int() or lcd_hex() or lcd_buf_hex() to set left al...
Definition: lcd_hd44780.h:28
@ right
pass as argument when calling lcd_int() or lcd_buf_int() or lcd_hex() or lcd_buf_hex() to set right a...
Definition: lcd_hd44780.h:29
@ LINE_2
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to second line of LCD
Definition: lcd_hd44780.h:38
@ LINE_3
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to third line of LCD
Definition: lcd_hd44780.h:39
@ LINE_1
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to first line of LCD
Definition: lcd_hd44780.h:37
@ LINE_4
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to fourth line of LCD
Definition: lcd_hd44780.h:40
@ C16
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 16'th char/collumn o...
Definition: lcd_hd44780.h:65
@ C19
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 19'th char/collumn o...
Definition: lcd_hd44780.h:68
@ C4
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 4'th char/collumn of...
Definition: lcd_hd44780.h:53
@ C11
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 11'th char/collumn o...
Definition: lcd_hd44780.h:60
@ C5
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 5'th char/collumn of...
Definition: lcd_hd44780.h:54
@ C15
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 15'th char/collumn o...
Definition: lcd_hd44780.h:64
@ C7
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 7'th char/collumn of...
Definition: lcd_hd44780.h:56
@ C10
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 10'th char/collumn o...
Definition: lcd_hd44780.h:59
@ C13
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 13'th char/collumn o...
Definition: lcd_hd44780.h:62
@ C14
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 14'th char/collumn o...
Definition: lcd_hd44780.h:63
@ C2
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 2'nd char/collumn of...
Definition: lcd_hd44780.h:51
@ C18
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 18'th char/collumn o...
Definition: lcd_hd44780.h:67
@ C8
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 8'th char/collumn of...
Definition: lcd_hd44780.h:57
@ C20
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 20'th char/collumn o...
Definition: lcd_hd44780.h:69
@ C9
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 9'th char/collumn of...
Definition: lcd_hd44780.h:58
@ C17
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 17'th char/collumn o...
Definition: lcd_hd44780.h:66
@ C3
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 3'th char/collumn of...
Definition: lcd_hd44780.h:52
@ C12
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 12'th char/collumn o...
Definition: lcd_hd44780.h:61
@ C6
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 6'th char/collumn of...
Definition: lcd_hd44780.h:55
@ C1
pass as argument when calling lcd_locate() or lcd_buf_locate() to move curson to 1'st char/collumn of...
Definition: lcd_hd44780.h:50
Header file for defining custom characters for the HD44780 LCD.
Definition: lcd_hd44780_def_char.h:65