Im sending data from one arduino to another with 2 nRF24L01, displaying it on a tft display. It working just fine but I want another thing.
I want to have a value that thells me if a uppdated value hav ben receved. In the end i want a green marker on the TFT to turn red if no new data have ben receved for say 10 sec. the TFT thin is no problem but maby you guys can give me som ideas how to fix my code to get the “time since latset received vallues”
here is my receiving arduino code: (the sending arduino is sending updated values every 5 sec.
I was more loking fore a way to just count the time from a message received.
Capture the value of millis() when you receive it. The elapsed time will always be the current value of millis(), subtracting that saved value. Code is in reply #3.