08-19-2018, 05:27 PM
Hi Jorge, oh no, how long has this been happening again? I just went through this thread again to refresh my memory, I see at the end it only appeared to be RTC related. How long are the wires from the RTC to controller board? I've been doing more with the I2C lately and have discovered just a couple extra inches of wires can mess everything up.
If you wanted to have the display reset when the plug turns red, in v4.2 find line 9507 and you should see the following.
At the end of this line you can see where it loads the red plug.
If you add this directly after it will restart the display.
This is what it should look like updated.
If you wanted to have the display reset when the plug turns red, in v4.2 find line 9507 and you should see the following.
Code:
if (communicating == 2) {webpageOpen = 0; internetEnabled = 0; if (screenSaverRunning == 0) {updateInternet(); myFiles.loadBitmap(741, 27, 45, 20, "disconn.raw");}}
At the end of this line you can see where it loads the red plug.
If you add this directly after it will restart the display.
Code:
pinMode(resetPin, OUTPUT);
digitalWrite(resetPin, LOW);
This is what it should look like updated.
Code:
if (communicating == 2) {webpageOpen = 0; internetEnabled = 0; if (screenSaverRunning == 0) {updateInternet(); myFiles.loadBitmap(741, 27, 45, 20, "disconn.raw"); pinMode(resetPin, OUTPUT); digitalWrite(resetPin, LOW);}}