how is the code?
Thx Gerry, pardon me. Can you tell me step by step about teporary text please..
i used enhanced version. so what i mean is where i have to code about "temporary text" in text touch event? or in variable? how is the syntax. is it possible?
Or what you mean is accessing rtc var in MCU programming like using buffer etc? then send it again into the textbox?
i'm a newbie here..
not enhanced displays do not contain a RTC ...
you code it wherever you like it to happen ...
a variable can't be propagated with code ... so ... you need a space where code insertion is allowed and make sense ...
For the right syntax, please refer to the Nextion commands. These commands can be found in the Nextion Instruction Set located here
It won't help you when I read the documentation, that's something you must do. Especially when you are a newby ...
For time, this code is an example
tTime is your destination, with a length of 5 (so it can hold "12:07").
vDay is a variable with a length of 2.
Similar code would work to produce a date of, for instance, "170211" (if that is what you are looking for).
for the format "20170211"
or in the "170211 format Lance mentions
Thank's Lance, where i should put the code? in a blank text?
Thank's Patrick for let me know how to set the format ^_^
lot of thanks guys :D
my answer wasn't how to set a format
my answer was take rtc0 1 and 2 and put together into a text
For the date, you might put the code in the "Postinitialize Event" of the page. For the time (in minutes), you can set up a timer which expires every 60 seconds. In the timer event you then rebuild your output and reset the timer for another 60 seconds.
tm0.tim=60000 // 1 minute