stuff
This commit is contained in:
parent
e99a095815
commit
6e1cb0325f
1 changed files with 5 additions and 0 deletions
5
LCD.py
5
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(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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue