This commit is contained in:
Benjamin Tayehanpour 2026-09-26 21:19:43 +00:00
parent 259f59c0e5
commit a508792adb

2
LCD.py
View file

@ -73,7 +73,7 @@ class LCD:
self.bus.write_byte(self.I2C_ADDR,(bits & ~self.ENABLE)) self.bus.write_byte(self.I2C_ADDR,(bits & ~self.ENABLE))
time.sleep(self.E_DELAY) time.sleep(self.E_DELAY)
def async_message(self, string, line = 1): async def async_message(self, string, line = 1):
async with lock: async with lock:
result = await asyncio.to_thread(_message, string = string, line = line) result = await asyncio.to_thread(_message, string = string, line = line)