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

added function very important

parent 41a6c870
Branches
Tags
No related merge requests found
......@@ -170,24 +170,8 @@ void setup(void) {
pinMode(BUTTON, INPUT_PULLUP);
}
/*
* 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);
void sayInfos(void)
{
playFileQueue(SOUND_EINS);
playFileQueue(SOUND_OBEN);
sayNumber(t1up_C, nachKommaStellen);
......@@ -229,6 +213,27 @@ void loop(void) {
playFileQueue(SOUND_ZWEI);
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 {
displayLight(false);
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment