stuff
This commit is contained in:
parent
3cce13e071
commit
9cba6f4fa4
2 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ import asyncio
|
||||||
from LCD import LCD
|
from LCD import LCD
|
||||||
|
|
||||||
class display:
|
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.width = width
|
||||||
self.height = height
|
self.height = height
|
||||||
self.device = LCD(2, i2c_addr, True)
|
self.device = LCD(2, i2c_addr, True)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ async def main():
|
||||||
await b2.start()
|
await b2.start()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
disp = display()
|
await disp = display()
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
loop.create_task(main())
|
loop.create_task(main())
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue