Refactored Analog driver to better support multiple channels

- Add command ``AdcGpio<gpio> <parameters>`` to better support ADC configuration
This commit is contained in:
Theo Arends 2024-08-03 17:52:47 +02:00
parent e5485288eb
commit c7faff7ac6
5 changed files with 458 additions and 440 deletions

View File

@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
- Berry `solidify.nocompact()` and reduce size of Matter UI (#21885)
- Berry `zigbee.find()` (#21889)
- Berry `zigbee.started()` (#21895)
- Command ``AdcGpio<gpio> <parameters>`` to better support ADC configuration
### Breaking Changed
- Berry `energy` module support for 8 phases and move to pseudo-arrays (#21887)
@ -28,6 +29,7 @@ All notable changes to this project will be documented in this file.
- Matter improve encoding of attributes to reduce flash size (#21864)
- ESP32 platform update from 2024.07.11 to 2024.08.10 (#21893)
- ESP32 Framework (Arduino Core) from v3.0.2 to v3.0.4 (#21893)
- Refactored Analog driver to better support multiple channels
### Fixed
- Berry `light.get` for separate RGB/CT (#21818)

View File

@ -121,6 +121,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
## Changelog v14.1.0.4
### Added
- Command ``AdcGpio<gpio> <parameters>`` to better support ADC configuration
- Support for QMP6988 temperature and pressure sensor
- Support for Sonoff WTS01 temperature sensor using SerialBridge in ``SSerialMode 3``
- Support for Sonoff iFan04-H using template [#16402](https://github.com/arendst/Tasmota/issues/16402)
@ -170,6 +171,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
- ESP8266 Framework (Arduino Core) from v2.7.6 to v2.7.7 [#21668](https://github.com/arendst/Tasmota/issues/21668)
- ESP32 platform update from 2024.05.13 to 2024.08.10 [#21893](https://github.com/arendst/Tasmota/issues/21893)
- ESP32 Framework (Arduino Core) from v3.0.0 to v3.0.4 [#21893](https://github.com/arendst/Tasmota/issues/21893)
- Refactored Analog driver to better support multiple channels
- Optional MQTT_TELE_RETAIN to Energy Margins message replaced by ``SensorRetain``
- Display timing splash screen with display modes 1 to 5
- Allow receive or send using SerialBridge

View File

@ -817,7 +817,8 @@
#define D_CMND_DALI_DIMMER "dim"
// Commands xsns_02_analog.ino
#define D_CMND_ADCPARAM "AdcParam"
#define D_CMND_ADCGPIO "Gpio"
#define D_CMND_ADCPARAM "Param"
// Commands xsns_05_ds18x20.ino
#define D_CMND_DS_ALIAS "Alias"

View File

@ -1273,25 +1273,6 @@ const uint16_t kAdcNiceList[] PROGMEM = {
};
#endif // ESP8266
// User selectable ADC functionality
enum UserSelectableAdc {
ADC_NONE, // 0 = Not used
ADC_INPUT, // 1 = Analog input
ADC_TEMP, // 2 = Thermistor
ADC_LIGHT, // 3 =Light sensor
ADC_BUTTON, // 4 =Button
ADC_BUTTON_INV, // 5 = Inverted button
ADC_RANGE, // 6 = Range
ADC_CT_POWER, // 7 = Current
ADC_JOY, // 8 = Joystick
ADC_PH, // 9 = Analog PH Sensor
ADC_MQ, // 10 = Analog MQ Sensor
ADC_VOLTAGE, // 11 = Voltage
ADC_CURRENT, // 12 = Current
// ADC_SWITCH, // Switch
// ADC_SWITCH_INV,
ADC_END };
/*********************************************************************************************\
* ATTENTION: No user changeable features beyond this point - do not add templates !!!
\*********************************************************************************************/

File diff suppressed because it is too large Load Diff