stuff
This commit is contained in:
parent
445c83e26f
commit
dc54ae1888
2 changed files with 2 additions and 2 deletions
2
LCD.py
2
LCD.py
|
|
@ -4,7 +4,7 @@ import smbus
|
||||||
lock = asyncio.Lock()
|
lock = asyncio.Lock()
|
||||||
|
|
||||||
class LCD:
|
class LCD:
|
||||||
async def __init__(self, pi_rev = 2, i2c_addr = 0x3F, backlight = True):
|
def __init__(self, pi_rev = 2, i2c_addr = 0x3F, backlight = True):
|
||||||
|
|
||||||
# device constants
|
# device constants
|
||||||
self.I2C_ADDR = i2c_addr
|
self.I2C_ADDR = i2c_addr
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import asyncio
|
||||||
from LCD import LCD
|
from LCD import LCD
|
||||||
|
|
||||||
class display:
|
class display:
|
||||||
async def __init__(self, width=20, height=4, i2c_addr=0x27):
|
def __init__(self, width=20, height=4, i2c_addr=0x27):
|
||||||
self.width = width
|
self.width = width
|
||||||
self.height = height
|
self.height = height
|
||||||
self.device = LCD(2, i2c_addr, True)
|
self.device = LCD(2, i2c_addr, True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue