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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login