Browse Source

Update 'Teensy4.1_Datalogger new.ino'

master
Julian Graf 1 year ago
parent
commit
af864593e3
1 changed files with 0 additions and 9 deletions
  1. 0
    9
      Teensy4.1_Datalogger new.ino

+ 0
- 9
Teensy4.1_Datalogger new.ino View File

@@ -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…
Cancel
Save