I2C OSError [ERRNO 116] ETIMEDOUT
-
Hi
Using CoreS3 + BaseX.
When running outside of UIFlow2 (in micropython REPL) instructions like :
i2c.writeto_mem(0x22,0x20,b'\x7f')
all is working fine
But when running in UIFlow2,
Firsttime of writeto_mem is OK but on second time, the program crashes:
I2C OSError [ERRNO 116] ETIMEDOUT
This is particularly true if this instruction is inside the main loop()
def loop():
global page0, label0, button0,i2c,count
M5.update()
count +=1
if count == 100:
i2c.writeto_mem(0x22,0x20,b'\x50')
if count == 10000:
i2c.writeto_mem(0x22,0x20,b'\x00')
The program crashes on the second occurence
IMPORTANT NOTE : This crash only occurs if m5ui.init() is included.
We have unsuccessfully tried to find a solution.
Anyone has a clue ?
thanks