Added TimerLcd_Print in while true loops
This commit is contained in:
parent
61a8615cc5
commit
7066f0ca43
5
ems.ino
5
ems.ino
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue