Browse Source

Update 'Teensy4.1_Datalogger new.ino'

master
Julian Graf 1 year ago
parent
commit
7c062ec26e
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Teensy4.1_Datalogger new.ino

+ 4
- 4
Teensy4.1_Datalogger new.ino View File

@@ -136,7 +136,7 @@ public:
pinMode(pin, INPUT);
}

void meassure() {
void measure() {
short int milli = millis();
if(last_milli != milli){
if(digitalRead(anemometer_pin) == HIGH){
@@ -410,9 +410,9 @@ void setup()
// Add the main program code into the continuous loop() function
void loop()
{
anemometer_1.meassure();
anemometer_2.meassure();
anemometer_3.meassure();
anemometer_1.measure();
anemometer_2.measure();
anemometer_3.measure();

if (second() != last_second) {
every_second();

Loading…
Cancel
Save