Max Prokhorov
0d40d2275a
Load sensor classes later ( #2128 )
* Sensors: refactor configuration
- move sensor implementaion to the .ino,
remove dependency undef / define from sensor files
- update test/build/sensor.h from SENSOR_SUPPORT
- allow to change sensor config variables externally
- `#include <...>` for global headers and libraries,
fix relative path for math library
* add missing sns <-> i2c dependency
* ledrelay should return relay_none as default
* rollback to original test header
* include debug header when requested (relative)
4 years ago
Pavel S
228fba5b3a
Enable multiple Digital & Events sensors ( #1832 )
* enable multiple Digital, Events & PulseMeter
* delete SPI dependency
* back to only one PulseMeter
* deprecared pins
5 years ago
Max Prokhorov
0d76910b6d
Update EventsSensor ( #1771 )
- cache ms<->clockcycles conversions
- move callback invocation outside of ISR handler
- remember last event value
5 years ago
Xose Pérez
175fcbf6cf
Support for WPS in core build. Using UNUSED macro to prevent warnings
5 years ago
Max Prokhorov
38a950c294
fix comment about clock cycles
5 years ago
Max Prokhorov
79c6263284
Event sensor: do not detach existing interrupts
5 years ago
Xose Pérez
546c8f09b2
Update Copyright notice
5 years ago
Xose Pérez
fba8a9f45f
Handle events in EventSensor
6 years ago
Xose Pérez
26a087dd7c
Check init status of sensors and re-init if they fail on boot ( #353 )
6 years ago
Xose Pérez
feffc290cc
Sensor type, value and slot methods should not set error values
6 years ago
Xose Pérez
170f0d543c
Option to publish address via MQTT for any sensor
6 years ago
Xose Pérez
c38911beae
Fix reference to sensor slot method
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
4888196b5e
Clean debug messages
6 years ago
Xose Pérez
e1baf48b9b
Option to disable completely new sensors module
6 years ago
Xose Pérez
3036676958
Check used GPIOs via locks
6 years ago
Xose Pérez
1fd269e05e
Moving interrupt handling routines from Abstract classes (ICACHE_RAM_ATTR and virtual do not get on well)
6 years ago
Xose Pérez
1ac4a61206
Migrate HLW8012 sensor to new sensor module, remove old code
6 years ago
Xose Pérez
f3c494d5da
Support for ECH1560 energy monitor in new sensors, untested
6 years ago
Xose Pérez
956215eac5
Default slot method in BaseSensor class
6 years ago
Xose Pérez
6e839e3d72
Added sensor IDs
6 years ago
Xose Pérez
c975b11226
Tentative to sensor manifest
6 years ago
Xose Pérez
de4780efbc
Added getters for sensors
6 years ago
Xose Pérez
7a2b4a7847
Normal debug for sensors
6 years ago
Xose Pérez
90a7f7f6d2
Interrupt handling routines for sensors
6 years ago
Xose Pérez
8728d55b7b
Change sensor API, force parameter-less constructors
6 years ago
Xose Pérez
ef04f72228
Headers for Sensor and Filter classes
6 years ago
Xose Pérez
ebe0d5e410
Fixed DallasSensor
6 years ago
Xose Pérez
b2dd7e5b56
Migrate DS18B20 and counter to new sensor module
6 years ago
Xose Pérez
f6378d52e4
Some name refactoring
6 years ago