diff --git a/LCD.py b/LCD.py index 5267133..f9b3d7a 100644 --- a/LCD.py +++ b/LCD.py @@ -50,6 +50,11 @@ class LCD: self.lcd_byte(0x28, self.LCD_CMD) # 101000 Data length, number of lines, font size self.lcd_byte(0x01, self.LCD_CMD) # 000001 Clear display + def set_char(self, address, bitmap): + address = address + 0x40 + for row in bitmap: + self.lcd_byte(row, 1) + def lcd_byte(self, bits, mode): # Send byte to data pins # bits = data