Update 'Teensy4.1_Datalogger new.ino'
This commit is contained in:
parent
2897852d69
commit
af864593e3
@ -8,7 +8,6 @@
|
||||
|
||||
#include <SdFat.h>
|
||||
#include <TimeLib.h>
|
||||
#include <Bounce.h>
|
||||
|
||||
#define SD_FAT_TYPE 3
|
||||
|
||||
@ -135,13 +134,9 @@ public:
|
||||
void setup_anemometer(int pin) {
|
||||
anemometer_pin = pin;
|
||||
pinMode(pin, INPUT);
|
||||
//this->reed_contact = Bounce(pin, 1);
|
||||
}
|
||||
|
||||
void meassure() {
|
||||
/*if (reed_contact.update() && reed_contact.fallingEdge()) {
|
||||
count_per_second++;
|
||||
}*/
|
||||
short int milli = millis();
|
||||
if(last_milli != milli){
|
||||
if(digitalRead(anemometer_pin) == HIGH){
|
||||
@ -198,8 +193,6 @@ private:
|
||||
int anemometer_pin;
|
||||
int last_milli;
|
||||
|
||||
//Bounce reed_contact = Bounce(2, 1);
|
||||
|
||||
calculations values[60];
|
||||
|
||||
}anemometer_1, anemometer_2, anemometer_3;
|
||||
@ -246,9 +239,7 @@ private:
|
||||
|
||||
public:
|
||||
void measure() {
|
||||
//digitalWrite(power_Windfahne, HIGH);
|
||||
wind_sec = map(analogRead(Windfahne), 0, 1023, 20, 350);
|
||||
//digitalWrite(power_Windfahne, LOW);
|
||||
wind_summ += wind_sec;
|
||||
saved_seconds++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user