diff --git a/display.py b/display.py index cc56df1..ca56439 100644 --- a/display.py +++ b/display.py @@ -2,7 +2,7 @@ import asyncio from LCD import LCD class display: - def __init__(self, width=20, height=4, i2c_addr=0x27): + async def __init__(self, width=20, height=4, i2c_addr=0x27): self.width = width self.height = height self.device = LCD(2, i2c_addr, True) diff --git a/fancontrol.py b/fancontrol.py index af7fed1..7254ccd 100644 --- a/fancontrol.py +++ b/fancontrol.py @@ -20,7 +20,7 @@ async def main(): await b2.start() if __name__ == "__main__": - disp = display() + await disp = display() loop = asyncio.get_event_loop() loop.create_task(main()) loop.run_forever() \ No newline at end of file