|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct anemomenter_maessurement { |
|
|
|
|
|
|
|
|
struct anemomenter { |
|
|
public: |
|
|
public: |
|
|
|
|
|
|
|
|
|
|
|
anemometer(){ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void setup(int pin) { |
|
|
|
|
|
|
|
|
void setup_anemometer(int pin) { |
|
|
this->reed_contact = Bounce(pin, 10); |
|
|
this->reed_contact = Bounce(pin, 10); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sd.initErrorHalt(&Serial); |
|
|
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; |
|
|
seconds_for_blink = 0; |
|
|
|
|
|
|
|
|
Serial.println("Messung startet"); |
|
|
Serial.println("Messung startet"); |