diff --git a/solarpump/solarpump.ino b/solarpump/solarpump.ino index 3ffc802916a056a5f7674eb410be2f0e89ab61dc..322510ce119df5c7178a03d77981297abbbe6dcf 100644 --- a/solarpump/solarpump.ino +++ b/solarpump/solarpump.ino @@ -194,15 +194,41 @@ void loop(void) { playFileQueue(SOUND_EINS); playFileQueue(SOUND_UNTEN); - sayNumber(t1up_C, nachKommaStellen); + sayNumber(t1down_C, nachKommaStellen); - playFileQueue(SOUND_EINS); + playFileQueue(SOUND_ZWEI); playFileQueue(SOUND_OBEN); - sayNumber(t1up_C, nachKommaStellen); + sayNumber(t2up_C, nachKommaStellen); - playFileQueue(SOUND_EINS); - playFileQueue(SOUND_OBEN); - sayNumber(t1up_C, nachKommaStellen); + playFileQueue(SOUND_ZWEI); + playFileQueue(SOUND_UNTEN); + sayNumber(t2down_C, nachKommaStellen); + + if (digitalRead(PUMP1)) + { + playFileQueue(SOUND_PUMPE); + playFileQueue(SOUND_EINS); + playFileQueue(SOUND_AN); + } + else + { + playFileQueue(SOUND_PUMPE); + playFileQueue(SOUND_EINS); + playFileQueue(SOUND_AUS); + } + + if (digitalRead(PUMP2)) + { + playFileQueue(SOUND_PUMPE); + playFileQueue(SOUND_ZWEI); + playFileQueue(SOUND_AN); + } + else + { + playFileQueue(SOUND_PUMPE); + playFileQueue(SOUND_ZWEI); + playFileQueue(SOUND_AUS); + } } else { displayLight(false); }