Browse Source

Make up

fastled
Xose Pérez 7 years ago
parent
commit
8d87345d45
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      code/espurna/sensors/EmonADS1X15Sensor.h

+ 2
- 1
code/espurna/sensors/EmonADS1X15Sensor.h View File

@ -14,6 +14,8 @@
#include <Wire.h> #include <Wire.h>
#endif #endif
#define ADS1X15_CHANNELS (4)
#define ADS1015_CONVERSIONDELAY (1) #define ADS1015_CONVERSIONDELAY (1)
#define ADS1115_CONVERSIONDELAY (8) #define ADS1115_CONVERSIONDELAY (8)
@ -88,7 +90,6 @@
#define ADS1X15_REG_CONFIG_CQUE_4CONV (0x0002) // Assert ALERT/RDY after four conversions #define ADS1X15_REG_CONFIG_CQUE_4CONV (0x0002) // Assert ALERT/RDY after four conversions
#define ADS1X15_REG_CONFIG_CQUE_NONE (0x0003) // Disable the comparator and put ALERT/RDY in high state (default) #define ADS1X15_REG_CONFIG_CQUE_NONE (0x0003) // Disable the comparator and put ALERT/RDY in high state (default)
#define ADS1X15_CHANNELS 4
class EmonADS1X15Sensor : public EmonSensor { class EmonADS1X15Sensor : public EmonSensor {


Loading…
Cancel
Save