WLED/usermods/AHT10_v2
Blaž Kristan 2ccc897532 Separate different debug components
- generic (WLED_DEBUG)
- FX (WLED_DEBUG_FX)
- bus manager (WLED_DEBUG_BUS)
- pin manager (WLED_DEBUG_PINMANAGER)
- usermods (WLED_DEBUG_USERMODS)
- math (WLED_DEBUG_MATH)
- all (WLED_DEBUG_ALL)

In an attempt to reduce flash usage while still getting a few debug messages.
2024-07-10 14:21:44 +02:00
..
README.md Fix state issue on change reporting, add override sample ini 2024-05-15 21:26:30 +02:00
platformio_override.ini Fix state issue on change reporting, add override sample ini 2024-05-15 21:26:30 +02:00
usermod_aht10.h Separate different debug components 2024-07-10 14:21:44 +02:00

README.md

Usermod AHT10

This Usermod is designed to read a AHT10, AHT15 or AHT20 sensor and output the following:

  • Temperature
  • Humidity

Configuration is performed via the Usermod menu. The following settings can be configured in the Usermod Menu:

  • I2CAddress: The i2c address in decimal. Set it to either 56 (0x38, the default) or 57 (0x39).
  • SensorType, one of:
    • 0 - AHT10
    • 1 - AHT15
    • 2 - AHT20
  • CheckInterval: Number of seconds between readings
  • Decimals: Number of decimals to put in the output

Dependencies, These must be added under lib_deps in your platform.ini (or platform_override.ini).

  • Libraries

Author

@LordMike

Compiling

To enable, compile with USERMOD_AHT10 defined (e.g. in platformio_override.ini)

[env:aht10_example]
extends = env:esp32dev
build_flags =
  ${common.build_flags} ${esp32.build_flags}
  -D USERMOD_AHT10
  ; -D USERMOD_AHT10_DEBUG ; -- add a debug status to the info modal
lib_deps = 
  ${esp32.lib_deps}
  enjoyneering/AHT10@~1.1.0