grroel.tech Newbie
 Joined: 09/12/2021 Location: SpainPosts: 27 |
| Posted: 06:54pm 31 Jan 2023 |
Copy link to clipboard |
 Print this post |
|
Hello,
I have a program that reads the temperature and humidity from a DHT22 module and displays the values on an ILI9488W display in an infinite loop, but when exactly 3600 seconds have elapsed the program terminates in the second line "Pause 500" with error "RTC is not responding".
This is the program:
'temp Humid display ' Colour RGB(255,255,255),RGB(0,0,0) CLS antTemp = 0 : antHumidity = 0
Do Text 10,280,Str$(Timer/1000),"LT",3,1,RGB(255,255,255),RGB(0,0,0) Circle 420,40,10,,,RGB(255,0,0),RGB(255,0,0) Bitbang humid GP28,Temp,Humidity Pause 500 If antTemp <> temp Then Text 10,10,Str$(Temp),"LT",6,2,RGB(255,0,0),RGB(0,0,0) antTemp = Temp EndIf If antHumidity <> Humidity Then Text 10,140,Str$(Humidity),"LT",6,2,RGB(0,255,0),RGB(0,0,0) antHumidity = Humidity EndIf Circle 420,40,10,,,RGB(0,0,0),RGB(0,0,0) Pause 500 Loop End
What happens? Why does the program terminate after this time if the DO loop is supposed to ... LOOP is never supposed to stop, and is there some kind of limitation?
Thank you,
Gerardo R. Roel, San Fernando, Cadiz, Spain. |