Skip to content
Snippets Groups Projects
Commit c229826e authored by Mario Engelmann's avatar Mario Engelmann
Browse files

small adjustments

parent 5660ea68
No related branches found
No related tags found
No related merge requests found
......@@ -170,23 +170,23 @@ void setup(void) {
pinMode(BUTTON, INPUT_PULLUP);
}
void sayInfos(void)
void sayInfos(float temp1up, float temp1down, float temp2up, float temp2down)
{
playFileQueue(SOUND_EINS);
playFileQueue(SOUND_OBEN);
sayNumber(t1up_C, nachKommaStellen);
sayNumber(temp1up, nachKommaStellen);
playFileQueue(SOUND_EINS);
playFileQueue(SOUND_UNTEN);
sayNumber(t1down_C, nachKommaStellen);
sayNumber(temp1down, nachKommaStellen);
playFileQueue(SOUND_ZWEI);
playFileQueue(SOUND_OBEN);
sayNumber(t2up_C, nachKommaStellen);
sayNumber(temp2up, nachKommaStellen);
playFileQueue(SOUND_ZWEI);
playFileQueue(SOUND_UNTEN);
sayNumber(t2down_C, nachKommaStellen);
sayNumber(temp2down, nachKommaStellen);
if (digitalRead(PUMP1))
{
......@@ -233,7 +233,7 @@ void loop(void) {
if (checkButton() == LOW) {
displayLight(true);
sayInfos();
sayInfos(t1up_C, t1down_C, t2up_C, t2down_C, nachKommaStellen);
} else {
displayLight(false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment