Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CalcTempDes() // define qual valor a variavel str1 vai receber de acordo com a temperatura
- {
- static unsigned long ult_tempo = 0;
- int tempo = millis();
- if (tempo - ult_tempo >= 1000) {
- ult_tempo = tempo;
- seg--;
- }
- if (seg >= 60) {
- seg = 0; min--;
- }
- if (min >= 60) {
- min = 0; hor--;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement