Skip to content

Instantly share code, notes, and snippets.

@Bolukan
Last active July 23, 2024 14:53
Show Gist options
  • Select an option

  • Save Bolukan/e199f7ccc84f6fccd9ef586d9743bfd0 to your computer and use it in GitHub Desktop.

Select an option

Save Bolukan/e199f7ccc84f6fccd9ef586d9743bfd0 to your computer and use it in GitHub Desktop.
Tasmota ENS16x+AHT2x
// enable ENS16x
#ifndef USE_ENS16x
#define USE_ENS16x
#endif
// enable AHT2x
#ifndef USE_AHT2x
#define USE_AHT2x
#endif
// disable VEML6070 as AHT2x is recognized as VEML6070
// Comment out all instances of USE_VEML6070 in tasmota_configurations_ESP32.h
#ifdef USE_VEML6070
#undef USE_VEML6070
#endif
#ifdef USE_VEML6070_RSET
#undef USE_VEML6070_RSET
#endif
#ifdef USE_VEML6070_SHOW_RAW
#undef USE_VEML6070_SHOW_RAW
#endif
// report each 60 seconds
#define TELE_PERIOD 60
// Configure I2C
// #define GPIO_I2C_SCL 22
// #define GPIO_I2C_SDA 21
#define USER_TEMPLATE "{\"NAME\":\"Custom\",\"GPIO\":[0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"FLAG\":0,\"BASE\":18}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment