This error occurs inconsistently—sometimes very frequently, and other times, it only happens after 4,000 or 5,000 scans. In some cases, I encounter the issue after just 20 scans.
@greenleaf Images have to be of a very optimised specification to work as the memory of devices is limited.
I haven't replied because I have been so busy with other things.
If I find time today I will have a look at these specifications.
I cannot present a solution, unfortunately - I can just confirm the issue you are describing.
That said, I don't think it is hardware related as a similar example I wrote in Arduino works just fine - the screen comes back alive after light sleep.
My conclusion is that it has to do about how Micropython handles light sleep...
@felmue Felix, thanks for your response.
This indeed works.
Trying to read/write some other registers (digital in) no luck yet, but at least there is some progress.
Thanks again.