Browse Source

Headers for Sensor and Filter classes

fastled
Xose Pérez 7 years ago
parent
commit
ef04f72228
18 changed files with 39 additions and 17 deletions
  1. +2
    -1
      code/espurna/filters/BaseFilter.h
  2. +2
    -1
      code/espurna/filters/MaxFilter.h
  3. +1
    -0
      code/espurna/filters/MedianFilter.h
  4. +2
    -1
      code/espurna/filters/MovingAverageFilter.h
  5. +2
    -1
      code/espurna/sensors/AnalogSensor.h
  6. +3
    -1
      code/espurna/sensors/BMX280Sensor.h
  7. +2
    -1
      code/espurna/sensors/BaseSensor.h
  8. +2
    -1
      code/espurna/sensors/DHTSensor.h
  9. +3
    -1
      code/espurna/sensors/DallasSensor.h
  10. +2
    -1
      code/espurna/sensors/DigitalSensor.h
  11. +2
    -1
      code/espurna/sensors/EmonADC121Sensor.h
  12. +2
    -1
      code/espurna/sensors/EmonADS1X15Sensor.h
  13. +2
    -1
      code/espurna/sensors/EmonAnalogSensor.h
  14. +2
    -1
      code/espurna/sensors/EmonSensor.h
  15. +2
    -1
      code/espurna/sensors/EventSensor.h
  16. +2
    -0
      code/espurna/sensors/MHZ19Sensor.h
  17. +4
    -2
      code/espurna/sensors/PMSX003Sensor.h
  18. +2
    -1
      code/espurna/sensors/SI7021Sensor.h

+ 2
- 1
code/espurna/filters/BaseFilter.h View File

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Aggregator base class
// Base Filter (other filters inherit from this)
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


+ 2
- 1
code/espurna/filters/MaxFilter.h View File

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Aggregator base class
// Max Filter
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


+ 1
- 0
code/espurna/filters/MedianFilter.h View File

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Median Filter
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


+ 2
- 1
code/espurna/filters/MovingAverageFilter.h View File

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Aggregator Moving Average
// Moving Average Filter
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// DHT Sensor
// Analog Sensor (maps to an analogRead)
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


+ 3
- 1
code/espurna/sensors/BMX280Sensor.h View File

@ -1,5 +1,7 @@
// -----------------------------------------------------------------------------
// BMX280 Sensor
// BME280/BMP280 Sensor over I2C
// Uses SparkFun BME280 library
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Median Filter
// Abstract sensor class (other sensor classes extend this class)
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// DHT Sensor
// DHTXX Sensor
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


+ 3
- 1
code/espurna/sensors/DallasSensor.h View File

@ -1,5 +1,7 @@
// -----------------------------------------------------------------------------
// DHT Sensor
// Dallas OneWire Sensor
// Uses OneWire library
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// DHT Sensor
// Digital Sensor (maps to a digitalRead)
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Energy monitor sensor
// ADS121-based Energy Monitor Sensor over I2C
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Energy monitor sensor
// ADS1X15-based Energy Monitor Sensor over I2C
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Eergy monitor sensor
// Energy Monitor Sensor using builtin ADC
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// Eergy monitor sensor
// Abstract Energy Monitor Sensor (other EMON sensors extend this class)
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// DHT Sensor
// Event Counter Sensor
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


+ 2
- 0
code/espurna/sensors/MHZ19Sensor.h View File

@ -2,6 +2,8 @@
// MHZ19 CO2 sensor
// Based on: https://github.com/nara256/mhz19_uart
// http://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z19b-co2-ver1_0.pdf
// Uses SoftwareSerial library
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


+ 4
- 2
code/espurna/sensors/PMSX003Sensor.h View File

@ -1,5 +1,7 @@
// -----------------------------------------------------------------------------
// PMSX003 Dust sensor
// PMSX003 Dust Sensor
// Uses SoftwareSerial library
// Contribution by Òscar Rovira López
// -----------------------------------------------------------------------------
#pragma once
@ -86,7 +88,7 @@ class PMSX003Sensor : public BaseSensor {
_error = SENSOR_ERROR_OUT_OF_RANGE;
return 0;
}
protected:
unsigned int _pm1dot0;
unsigned int _pm2dot5;


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

@ -1,5 +1,6 @@
// -----------------------------------------------------------------------------
// DHT Sensor
// SI7021 / HTU21D Sensor over I2C
// Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
// -----------------------------------------------------------------------------
#pragma once


Loading…
Cancel
Save