I have been spending way too long trying to get a rtc value from NX8048K070_011 over to my Arduino Mega. I’m using the PerryBebbington method of ‘Using Nextion displays with Arduino’ the Arduino side works a treat data is coming in loud and clear.
The issue I have is on the Nextion side.
I have a timer event set to run every 5 seconds with the below code. Also a number n0 on screen.
The Screen number updates as expected but the HEX value of the Printh is static, I have checked the received code and the simulated output.
Question of the day is how best to get the rtc value updating and over to the Arduino pref in Binary.
Ta in Advance
n0.val=rtc5 printh a5 //Start printh a5 //Start printh a5 //Start printh 00 //Page printh 01 //Type printh 00 //Index printh n0.val
RTC_A.HMI.txt (1.02 MB)