From bb5973fe41d37a3d93fd5640ceba0b70c321f28d Mon Sep 17 00:00:00 2001 From: Michael <6431441+expert-m@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:01:59 +0300 Subject: [PATCH] Resend the current cursor position after creating a new char --- lcd_i2c/lcd_i2c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lcd_i2c/lcd_i2c.py b/lcd_i2c/lcd_i2c.py index e1c7567..c677f03 100644 --- a/lcd_i2c/lcd_i2c.py +++ b/lcd_i2c/lcd_i2c.py @@ -393,6 +393,8 @@ def create_char(self, location: int, charmap: List[int]) -> None: self._command(value=charmap[x], mode=Const.RS) sleep_us(40) + self.set_cursor(*self.cursor_position) + def print(self, text: str) -> None: """ Print text on LCD