Hi all,
After careful consideration, I am asking here instead of the MKR1310 forum since this might be a general I2C question. Sorry if it's not.
In short, I have a MKR 1310 board and I use the Wire library to read a register on the onboard power chip (see this thread). It works just fine when the CPU remains active.
However, when I use deepSleep() and come back to activity after an interrupt for instance, reading anything will just return 0.
I've tried putting Wire.begin() and Wire.setClock(400000) in the loop instead of just setup(), but to no avail.
Is there anything else I should wake up or init before using I2C after deepSleep ?
Many thanks!