diff --git a/solarpump/StimmeMp3/A034.mp3 b/solarpump/StimmeMp3/A034.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..6d4fa04cfb16c7226a4dd14e6b0467a6f4687620 Binary files /dev/null and b/solarpump/StimmeMp3/A034.mp3 differ diff --git a/solarpump/solarpump.ino b/solarpump/solarpump.ino index d866a458db97e2ef6d43628e410a1601c74b521e..2fd691fd206cc2e62d396efc98370fa7f8cac2c6 100644 --- a/solarpump/solarpump.ino +++ b/solarpump/solarpump.ino @@ -170,35 +170,41 @@ void setup(void) { pinMode(BUTTON, INPUT_PULLUP); } -void sayInfos(float temp1up, float temp1down, float temp2up, float temp2down) +void sayInfos(float temp1up, float temp1down, float temp2up, float temp2down, uint8_t comma) { playFileQueue(SOUND_EINS); playFileQueue(SOUND_OBEN); sayNumber(temp1up, nachKommaStellen); + playFileQueue(SOUND_STILLE); playFileQueue(SOUND_EINS); playFileQueue(SOUND_UNTEN); sayNumber(temp1down, nachKommaStellen); + playFileQueue(SOUND_STILLE); playFileQueue(SOUND_ZWEI); playFileQueue(SOUND_OBEN); sayNumber(temp2up, nachKommaStellen); + playFileQueue(SOUND_STILLE); playFileQueue(SOUND_ZWEI); playFileQueue(SOUND_UNTEN); sayNumber(temp2down, nachKommaStellen); + playFileQueue(SOUND_STILLE); if (digitalRead(PUMP1)) { playFileQueue(SOUND_PUMPE); playFileQueue(SOUND_EINS); playFileQueue(SOUND_AN); + playFileQueue(SOUND_STILLE); } else { playFileQueue(SOUND_PUMPE); playFileQueue(SOUND_EINS); playFileQueue(SOUND_AUS); + playFileQueue(SOUND_STILLE); } if (digitalRead(PUMP2)) @@ -206,12 +212,14 @@ void sayInfos(float temp1up, float temp1down, float temp2up, float temp2down) playFileQueue(SOUND_PUMPE); playFileQueue(SOUND_ZWEI); playFileQueue(SOUND_AN); + playFileQueue(SOUND_STILLE); } else { playFileQueue(SOUND_PUMPE); playFileQueue(SOUND_ZWEI); playFileQueue(SOUND_AUS); + playFileQueue(SOUND_STILLE); } } diff --git a/solarpump/soundFiles.h b/solarpump/soundFiles.h index 937a54d776d892d79d6a5660472628018811f476..8a31b014c986384d11fb269743591933fda4465a 100644 --- a/solarpump/soundFiles.h +++ b/solarpump/soundFiles.h @@ -2,6 +2,7 @@ #define SOUNDFILES_H // index for the sound files for mp3 module TDB380 +// the files are .mp3 instead of .wav #define SOUND_NULL 33 // A033.wav #define SOUND_EIN 1 // A001.wav #define SOUND_EINS 44 // A044.wav @@ -39,5 +40,6 @@ #define SOUND_UND 27 // A027.wav #define SOUND_AN 31 // A031.wav #define SOUND_AUS 32 // A032.wav +#define SOUND_STILLE 34 // A034.wav #endif