lcd_set_cursor_column() also updates lcd_ddram_address

This commit is contained in:
Alex Voinea 2023-01-24 12:08:07 +01:00
parent f392fae996
commit 90222747f2
1 changed files with 3 additions and 1 deletions

View File

@ -371,7 +371,9 @@ void lcd_set_cursor(uint8_t col, uint8_t row)
void lcd_set_cursor_column(uint8_t col)
{
lcd_command(LCD_SETDDRAMADDR | (col + lcd_get_row_offset(lcd_currline)));
uint8_t addr = col + lcd_get_row_offset(lcd_currline);
lcd_ddram_address = addr;
lcd_command(LCD_SETDDRAMADDR | addr);
}
// Allows us to fill the first 8 CGRAM locations