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

added function very important

parent 41a6c870
No related branches found
No related tags found
No related merge requests found
...@@ -170,24 +170,8 @@ void setup(void) { ...@@ -170,24 +170,8 @@ void setup(void) {
pinMode(BUTTON, INPUT_PULLUP); pinMode(BUTTON, INPUT_PULLUP);
} }
/* void sayInfos(void)
* main loop function {
* 1. Check if button was pressed.
* 2. If button was pressed,turn display on and say the temperetures.
* 3. Check if pumps should be turned on or out.
* 4. Update the display.
*/
void loop(void) {
static float t1up_C = 0.0;
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_EINS); playFileQueue(SOUND_EINS);
playFileQueue(SOUND_OBEN); playFileQueue(SOUND_OBEN);
sayNumber(t1up_C, nachKommaStellen); sayNumber(t1up_C, nachKommaStellen);
...@@ -229,6 +213,27 @@ void loop(void) { ...@@ -229,6 +213,27 @@ void loop(void) {
playFileQueue(SOUND_ZWEI); playFileQueue(SOUND_ZWEI);
playFileQueue(SOUND_AUS); playFileQueue(SOUND_AUS);
} }
}
/*
* main loop function
* 1. Check if button was pressed.
* 2. If button was pressed,turn display on and say the temperetures.
* 3. Check if pumps should be turned on or out.
* 4. Update the display.
*/
void loop(void) {
static float t1up_C = 0.0;
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);
sayInfo();
} else { } else {
displayLight(false); displayLight(false);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment