diff --git a/solarpump/solarpump.ino b/solarpump/solarpump.ino index bf814fa9a0246768aae80b8bd5e6db822e253d37..ab21cf533e4b0aeef483e75fa01f6977bdd7cc3e 100644 --- a/solarpump/solarpump.ino +++ b/solarpump/solarpump.ino @@ -151,7 +151,6 @@ void displayLight(bool turnOn) { } } - /* * main setup function * initialize every electronic component @@ -182,14 +181,27 @@ void loop(void) { static float t1down_C = 0.0; static float t2up_C = 0.0; static float t2down_C = 0.0; + static int nachKommaStellen = 1; mp3Loop(); if (checkButton() == LOW) { displayLight(true); - playFileQueue(SOUND_TEMPERATURE); - playFileQueue(SOUND_HOCHSTER_WERT); - playFileQueue(SOUND_KOMMA); + playFileQueue(SOUND_EINS) + playFileQueue(SOUND_OBEN); + sayNumber(t1up_C, nachKommaStellen); + + playFileQueue(SOUND_EINS) + playFileQueue(SOUND_UNTEN); + sayNumber(t1up_C, nachKommaStellen); + + playFileQueue(SOUND_EINS) + playFileQueue(SOUND_OBEN); + sayNumber(t1up_C, nachKommaStellen); + + playFileQueue(SOUND_EINS) + playFileQueue(SOUND_OBEN); + sayNumber(t1up_C, nachKommaStellen); } else { displayLight(false); }