Skip to content
Snippets Groups Projects
Commit 30b6aba1 authored by Sandro Stephan Rufibach's avatar Sandro Stephan Rufibach
Browse files

Construktor hinzugefügt

parent d74d68f2
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,16 @@
// TODO: Implement the constructor
//Hier noch die constructor einfügen
Flowerpot::Flowerpot(int threshold, uint8_t displayAddress, int valvePin) //Muss genau gleich wie im Classenpot aussehen
:threshold{threshold}, displayAddress{displayAddress}, valvePin{valvePin}, moisture{0}; tickCount{0}; valvePos{0};
{
}
Flowerpot::Flowerpot(int threshold, uint8_t displayAddress, int valvePin) //Muss genau gleich wie im Classenpot aussehen
: threshold{threshold}, displayAddress{displayAddress}, valvePin{valvePin},
moisture{0}, tickCount{0}, valvePos{0},
moistureSensor{displayAddress}
{
state = S_OBSERVE;
};
//Die Lösungen vom Construktor wurden kopiert von den Lösungen
// TODO: Uncomment the following code. begin(), loop(), observe(), and watering() are already implemented
void Flowerpot::begin()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment