I have a project that has a Nextion display a mega and an RTC (DS3132) and my problem is the following:
From the RTC I get the date values and store each of them in 6 int variables called ( year, month, day, hour, minute, second) and now i want to send them to a text box in the Nextion. I know how to send them to 6 individual textboxes but I would like to do it to single one and with the following format : " DD/MM/YYYY HH/MM". So i will need to place the int values in a char array and also place the "/" (0x2F in HEX) between values and a space " " (0x20 in HEX) between the date and the hour. However, I have been unable to find a way of doing this, does anyone now how to?
@Koepel I have beeen looking at the link to understand why you have to place a 02 before the integer, and what does it mean. If i understood correctly 02 is defining the length of the integer?
Okei, I think I got it! The structure after the % is [flags][width][.precision][length] so you placed a 0 for flags and a 2 for width.
Hello , I am having trouble again with printing into the text box in Nextion. I am unable to print the " º " simbol from º C to print a temperature. Here is the small bit of code doing this: