Changeset 29


Ignore:
Timestamp:
Oct 6, 2019, 10:39:59 PM (7 years ago)
Author:
markus
Message:

Adding measurement data and tools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Arduino/projects/OT_boiler/OT_boiler.ino

    r25 r29  
    2727  int   a3;
    2828  int   a4;
     29  int   a5;
    2930
    3031  virtual double AD2Temperature (int);
    … …  
    9798  //digitalWrite(ACTIVITY_LED_PIN, boiler.IsActive() ? HIGH : LOW);
    9899#else
    99   unsigned long periode = msTicks / (boiler.IsActive() ? 500 : 2000);
     100  unsigned long periode = msTicks / (boiler.IsActive() ? 500 : 1000);
    100101  static unsigned long prev = 0;
    101102  if (prev != periode) {
    … …  
    118119      Serial.print(boiler.a3);
    119120      Serial.print("\tT(A3): ");
    120       Serial.println(tReturn);
     121      Serial.print(tReturn);
     122      boiler.a4 = analogRead(A4);   // read the input pin
     123      Serial.print("\tA4: ");
     124      Serial.print(boiler.a4);
     125      boiler.a5 = analogRead(A5);   // read the input pin
     126      Serial.print("\tA5: ");
     127      Serial.println(boiler.a5);
    121128          }
    122129          digitalWrite(ACTIVITY_LED_PIN, led);
Note: See TracChangeset for help on using the changeset viewer.