55 #define LCD1602_ADDR 0x27 56 #define LCD1602_ROW_OFFSET 0x40 58 #define LCD1602_DATA 0x01 59 #define LCD1602_COMMAND 0x00 61 #define LCD1602_CLR_E 0x00 62 #define LCD1602_SET_E 0x04 64 #define LCD1602_BACKLIGHT_ON 0x08 65 #define LCD1602_BACKLIGHT_OFF 0x00 void lcd1602_cursorSet(uint8_t col, uint8_t row)
Set cursor to the specified position.
void lcd1602_displayOn(void)
Turn the display on.
void lcd1602_sendCommand(uint8_t cmd)
Send a command.
void lcd1602_puts(const char *s)
Print a string at the display.
void lcd1602_displayOff(void)
Turn the display off.
void lcd1602_displayClear(void)
Clear the display.
void lcd1602_putchar(const char c)
Print a character at the display.
void lcd1602_cursorHome(void)
Place the cursor at its home position.
void lcd1602_sendData(uint8_t byte)
Send a data byte.
void lcd1602_init(void)
Initialize the display.