I am working with a Lilygo T-Watch 2021 and I have loaded an arduino sketch with a UI made with SLS. Everything has been working fine for several days but in the last couple of days my screen started showing patches of horizontal colored lines, or showing the frame of a label (supposed to be invisible) or not showing anything at all (just backlight).
Program is working fine, as shown by the serial monitor and other interfaces. The issue is just with the display.
What have I tried so far?
I suspected a HW problem and repeatedly plugged and unplugged the display. Didn’t solve it.
I loaded the code on a new identical board+display set and THAT appears to solve the problem!!! But I can’t think of a hardware problem because I have already plugging and unplugging the display and the problem persists…
@alto777, @gilshultz, thanks for your answers, this reassures me that there is nothing else I could try. I thought maybe there could be an even deeper memory wipe… For now I’ll just use the new board and I’ll see if I can order new display to replace the other and see if the problem disappears.
Sounds good. It is very rare for a processor such as used in the arduino to wipe memory. It takes several instructions to change the FLASH and it cannot be done from a user program. This is by design as FLASH is in the program memory segment. This might help: On devices with boot block, the SPM (Scratch Pad Memory) instruction has the ability to writeto the entire Flash memory, but can only be executed from the Boot section. Executing SPM from the Application section will have no effect. On the smaller devices that don' have a boot block, the SPM instruction can be executed from the entire memory. There is a lot of design effort to prevent this.