Added TimerLcd_Print in while true loops

This commit is contained in:
lucic71 2021-05-25 14:09:17 +03:00
parent 61a8615cc5
commit 7066f0ca43
1 changed files with 4 additions and 1 deletions

View File

@ -98,6 +98,7 @@ void loop() {
case KEYONE:
lcd.clear();
while (true) {
TimerLcd_Print();
th = TempHum_GetData();
TempHum_PrintData(th);
@ -109,6 +110,7 @@ void loop() {
case KEYTWO:
lcd.clear();
while (true) {
TimerLcd_Print();
distance = Ultrasonic_GetDistance(US_TRIG_PIN, US_ECHO_PIN);
Ultrasonic_PrintDistance(distance);
@ -120,6 +122,7 @@ void loop() {
case KEYTHREE:
lcd.clear();
while (true) {
TimerLcd_Print();
soundLevel = Sound_GetData(SOUND_RECEIVE_PIN);
Sound_PrintData(soundLevel);
@ -131,8 +134,8 @@ void loop() {
case KEYFOUR:
lcd.clear();
while (true) {
TimerLcd_Print();
Water_PrintLevel(Water_GetLevel());
key = IrRecever_GetRemoteKey();
if (key == KEYEQ)