mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Add support for MAX44009
Add support for MAX44009 Ambient Light sensor (#4907)
This commit is contained in:
parent
669f6c86c9
commit
ced019eaa5
@ -1,6 +1,7 @@
|
|||||||
/* 6.4.1.10 20190121
|
/* 6.4.1.10 20190121
|
||||||
* Fix Hass discovery of MHZ19(B) sensors (#4992)
|
* Fix Hass discovery of MHZ19(B) sensors (#4992)
|
||||||
* Fix Hass Software Watchdog exception during discovery (#4988)
|
* Fix Hass Software Watchdog exception during discovery (#4988)
|
||||||
|
* Add support for MAX44009 Ambient Light sensor (#4907)
|
||||||
*
|
*
|
||||||
* 6.4.1.9 20190115
|
* 6.4.1.9 20190115
|
||||||
* Add support for Mi LED Desk Lamp with rotary switch (#4887)
|
* Add support for Mi LED Desk Lamp with rotary switch (#4887)
|
||||||
|
@ -93,6 +93,7 @@ void KNX_CB_Action(message_t const &msg, void *arg);
|
|||||||
//#define USE_DS3231 // Enable DS3231 external RTC in case no Wifi is avaliable. See docs in the source file (+1k2 code)
|
//#define USE_DS3231 // Enable DS3231 external RTC in case no Wifi is avaliable. See docs in the source file (+1k2 code)
|
||||||
//#define USE_MGC3130 // Enable MGC3130 Electric Field Effect Sensor (I2C address 0x42) (+2k7 code, 0k3 mem)
|
//#define USE_MGC3130 // Enable MGC3130 Electric Field Effect Sensor (I2C address 0x42) (+2k7 code, 0k3 mem)
|
||||||
//#define USE_PN532_I2C // Enable PN532 - Near Field Communication (NFC) controller (+1k6 code)
|
//#define USE_PN532_I2C // Enable PN532 - Near Field Communication (NFC) controller (+1k6 code)
|
||||||
|
//#define USE_MAX44009 // Enable MAX44009 Ambient Light sensor (I2C addresses 0x4A and 0x4B) (+0k8 code)
|
||||||
#define USE_MHZ19 // Add support for MH-Z19 CO2 sensor (+2k code)
|
#define USE_MHZ19 // Add support for MH-Z19 CO2 sensor (+2k code)
|
||||||
#define USE_SENSEAIR // Add support for SenseAir K30, K70 and S8 CO2 sensor (+2k3 code)
|
#define USE_SENSEAIR // Add support for SenseAir K30, K70 and S8 CO2 sensor (+2k3 code)
|
||||||
#ifndef CO2_LOW
|
#ifndef CO2_LOW
|
||||||
|
@ -379,7 +379,9 @@ void GetFeatures(void)
|
|||||||
#ifdef USE_PN532_I2C
|
#ifdef USE_PN532_I2C
|
||||||
feature_sns2 |= 0x00100000; // xsns_40_pn532_i2c.ino
|
feature_sns2 |= 0x00100000; // xsns_40_pn532_i2c.ino
|
||||||
#endif
|
#endif
|
||||||
// feature_sns2 |= 0x00200000;
|
#ifdef USE_MAX44009
|
||||||
|
feature_sns2 |= 0x00200000;
|
||||||
|
#endif
|
||||||
// feature_sns2 |= 0x00400000;
|
// feature_sns2 |= 0x00400000;
|
||||||
// feature_sns2 |= 0x00800000;
|
// feature_sns2 |= 0x00800000;
|
||||||
// feature_sns2 |= 0x01000000;
|
// feature_sns2 |= 0x01000000;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
xsns_91_max44009.ino - MAX44009 ambient light sensor support for Sonoff-Tasmota
|
xsns_41_max44009.ino - MAX44009 ambient light sensor support for Sonoff-Tasmota
|
||||||
|
|
||||||
Copyright (C) 2019 Theo Arends
|
Copyright (C) 2019 Theo Arends
|
||||||
|
|
||||||
@ -25,7 +25,7 @@
|
|||||||
* I2C Address: 0x4a or 0x4b
|
* I2C Address: 0x4a or 0x4b
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
|
||||||
#define XSNS_91 91
|
#define XSNS_41 41
|
||||||
|
|
||||||
#define MAX44009_ADDR1 0x4A
|
#define MAX44009_ADDR1 0x4A
|
||||||
#define MAX44009_ADDR2 0x4B
|
#define MAX44009_ADDR2 0x4B
|
||||||
@ -151,7 +151,7 @@ void Max4409Show(boolean json)
|
|||||||
* Interface
|
* Interface
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
|
||||||
boolean Xsns91(byte function)
|
boolean Xsns41(byte function)
|
||||||
{
|
{
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
|
|
@ -137,7 +137,7 @@ a_features = [[
|
|||||||
"USE_MCP39F501","USE_PZEM_AC","USE_DS3231","USE_HX711",
|
"USE_MCP39F501","USE_PZEM_AC","USE_DS3231","USE_HX711",
|
||||||
"USE_PZEM_DC","USE_TX20_WIND_SENSOR","USE_MGC3130","USE_RF_SENSOR",
|
"USE_PZEM_DC","USE_TX20_WIND_SENSOR","USE_MGC3130","USE_RF_SENSOR",
|
||||||
"USE_THEO_V2","USE_ALECTO_V2","USE_AZ7798","USE_MAX31855",
|
"USE_THEO_V2","USE_ALECTO_V2","USE_AZ7798","USE_MAX31855",
|
||||||
"USE_PN532_I2C","","","",
|
"USE_PN532_I2C","USE_MAX44009","","",
|
||||||
"","","","",
|
"","","","",
|
||||||
"","","",""]]
|
"","","",""]]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user