Calvin,
Unfortunately a little learning curve to understand the layout and programming of the KD8CEC Nextion screens. The first step is to download the latest Nextion editor ( ). And then download the hmi file that you will find here:
He provided two formats for the date, the format is coded into the file name. Now open it up in the Nextion editor. (It may automatically upgrade the format and ask you to save it depending on the age of the .hmi file)
At this point, youtube tutorials on the Nextion editor are your friends...? You should see on the main screen a placeholder for the date/time. Select that and then look at the tabs that appear towards the bottom of the editor. These tabs have instructions on what happens when they get fired. Some are fired on press, some release, etc.
Although I never looked at the code, I suspect that a click event might bring up a screen to set time. (look for a "page xxxx" command.) You can then select this page on the listing of pages on the right. There should also be some timer event or something else that links the time/clock to the RTC.
Fortunately, all the coding and ux can be done in the Nextion editor and does not require any firmware changes.? Once you track everything down in the 3.2, you can then transplant that code to your screen (2.8"?)
It will take some time, but once you get it it is fun!
73
Mark
--
AJ6CU/7
KD8CEC 2.0, Nextion Screens,? and open source uBITX Raduino boards for Arduino IOT, BLE, RP2040, Teensy 4.0, and Raspberry Pi Pico
https://github.com/aj6cu