Browse Source

analog sensors and ADC_MODE

rfm69
Lazar Obradovic 6 years ago
parent
commit
81fb3f0e64
4 changed files with 14 additions and 4 deletions
  1. +0
    -4
      code/espurna/config/sensors.h
  2. +4
    -0
      code/espurna/sensors/EmonAnalogSensor.h
  3. +5
    -0
      code/espurna/sensors/GUVAS12SDSensor.h
  4. +5
    -0
      code/espurna/sensors/TMP3XSensor.h

+ 0
- 4
code/espurna/config/sensors.h View File

@ -530,10 +530,6 @@
#define ADC_VCC_ENABLED 1 #define ADC_VCC_ENABLED 1
#endif #endif
#if ADC_VCC_ENABLED
ADC_MODE(ADC_VCC);
#endif
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
// Class loading // Class loading
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------


+ 4
- 0
code/espurna/sensors/EmonAnalogSensor.h View File

@ -7,6 +7,10 @@
#pragma once #pragma once
#if ADC_VCC_ENABLED
ADC_MODE(ADC_VCC);
#endif
#include "Arduino.h" #include "Arduino.h"
#include "EmonSensor.h" #include "EmonSensor.h"


+ 5
- 0
code/espurna/sensors/GUVAS12SDSensor.h View File

@ -8,6 +8,11 @@
#pragma once #pragma once
#if ADC_VCC_ENABLED
ADC_MODE(ADC_VCC);
#endif
#include "Arduino.h" #include "Arduino.h"
#include "BaseSensor.h" #include "BaseSensor.h"


+ 5
- 0
code/espurna/sensors/TMP3XSensor.h View File

@ -7,6 +7,11 @@
#pragma once #pragma once
#if ADC_VCC_ENABLED
ADC_MODE(ADC_VCC);
#endif
#include "Arduino.h" #include "Arduino.h"
#include "BaseSensor.h" #include "BaseSensor.h"


Loading…
Cancel
Save