This commit is contained in:
Benjamin Tayehanpour 2026-09-27 16:24:01 +00:00
parent 66459acfc2
commit edcf0ef8b1

2
LCD.py
View file

@ -51,7 +51,7 @@ class LCD:
self.lcd_byte(0x01, self.LCD_CMD) # 000001 Clear display self.lcd_byte(0x01, self.LCD_CMD) # 000001 Clear display
def set_char(self, address, bitmap): def set_char(self, address, bitmap):
address = address + 0x40 address = address * 8 + 0x40
self.lcd_byte(address, 0) self.lcd_byte(address, 0)
for row in bitmap: for row in bitmap:
self.lcd_byte(row, 1) self.lcd_byte(row, 1)