This commit is contained in:
Benjamin Tayehanpour 2026-09-27 16:02:34 +00:00
parent e99a095815
commit 6e1cb0325f

5
LCD.py
View file

@ -50,6 +50,11 @@ class LCD:
self.lcd_byte(0x28, self.LCD_CMD) # 101000 Data length, number of lines, font size 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 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): def lcd_byte(self, bits, mode):
# Send byte to data pins # Send byte to data pins
# bits = data # bits = data