diff --git a/adafruit_tca9548a.py b/adafruit_tca9548a.py index 4034a2a..f4d9aca 100644 --- a/adafruit_tca9548a.py +++ b/adafruit_tca9548a.py @@ -29,6 +29,7 @@ """ +import time from micropython import const _DEFAULT_ADDRESS = const(0x70) @@ -49,7 +50,7 @@ def __init__(self, tca, channel): def try_lock(self): """Pass through for try_lock.""" while not self.tca.i2c.try_lock(): - pass + time.sleep(0) self.tca.i2c.writeto(self.tca.address, self.channel_switch) return True