stuff
This commit is contained in:
parent
66459acfc2
commit
edcf0ef8b1
1 changed files with 1 additions and 1 deletions
2
LCD.py
2
LCD.py
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue