![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Temp/Humidity alarm
Diff: main.cpp
- Revision:
- 1:42f6beb90ce3
- Parent:
- 0:2e716206ddde
diff -r 2e716206ddde -r 42f6beb90ce3 main.cpp --- a/main.cpp Fri Jul 31 11:22:21 2020 +0000 +++ b/main.cpp Fri Jul 31 19:33:46 2020 +0000 @@ -15,9 +15,6 @@ //LED1 = temperature low - -//bool check = true; - float RH; float m=160, c=-20; @@ -30,12 +27,6 @@ int main() { while(1) { - //while(check) - // { - //check =false; - //} - - temp = pot2*m + c; tempK= temp +273.15; RH = pot1*100; @@ -218,11 +209,6 @@ } -// instead of running through cycle 3 times with a for loop, while loop will continue to run while RH and temp are outside of parameters. - - - - }