From 30522773fce9f43bdf9fcdc58da744eec46e3108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20H=C3=A5vik?= <38088012+khavik@users.noreply.github.com> Date: Tue, 5 Feb 2019 04:00:04 +0100 Subject: [PATCH] Update charled_customcharacter.py Added create_char() to actually send the custom character to the LCD. --- examples/charlcd_customcharacter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/charlcd_customcharacter.py b/examples/charlcd_customcharacter.py index 7810802..d91bd47 100644 --- a/examples/charlcd_customcharacter.py +++ b/examples/charlcd_customcharacter.py @@ -21,5 +21,9 @@ lcd_d7, lcd_columns, lcd_rows, lcd_backlight) checkmark = bytes([0x0, 0x0, 0x1, 0x3, 0x16, 0x1c, 0x8, 0x0]) + +# Store in LCD character memory 0 +lcd.create_char(0, checkmark) + lcd.clear() lcd.message = "\x00"