This commit is contained in:
Benjamin Tayehanpour 2026-09-26 20:37:02 +00:00
parent 445c83e26f
commit dc54ae1888
2 changed files with 2 additions and 2 deletions

2
LCD.py
View file

@ -4,7 +4,7 @@ import smbus
lock = asyncio.Lock()
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
self.I2C_ADDR = i2c_addr

View file

@ -2,7 +2,7 @@ import asyncio
from LCD import LCD
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.height = height
self.device = LCD(2, i2c_addr, True)