added 1 sec delay to vision.__init__ to account for slower esp boot

main
Jake 2026-07-20 11:16:03 +08:00
parent 2661177521
commit c2f4e52e80
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ class Vision:
self.i2c = I2C(0, sda=Pin(sda), scl=Pin(scl), freq=freq) self.i2c = I2C(0, sda=Pin(sda), scl=Pin(scl), freq=freq)
else: else:
self.i2c = i2c self.i2c = i2c
time.sleep(1)
@staticmethod @staticmethod
def _bus_recover(sda_pin, scl_pin): def _bus_recover(sda_pin, scl_pin):