@@ -113,10 +113,13 @@ public: | |||
}; | |||
struct anemomenter_maessurement { | |||
struct anemomenter { | |||
public: | |||
anemometer(){ | |||
} | |||
void setup(int pin) { | |||
void setup_anemometer(int pin) { | |||
this->reed_contact = Bounce(pin, 10); | |||
} | |||
@@ -337,9 +340,9 @@ void setup() | |||
sd.initErrorHalt(&Serial); | |||
} | |||
anemometer_1.setup(2); | |||
anemometer_2.setup(9); | |||
anemometer_3.setup(22); | |||
anemometer_1.setup_anemometer(2); | |||
anemometer_2.setup_anemometer(9); | |||
anemometer_3.setup_anemometer(22); | |||
seconds_for_blink = 0; | |||
Serial.println("Messung startet"); |