| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /**
- * @file AHT20_ATY.h
- *
- * @param Project DEVICE_GENERAL_ATY_LIB
- *
- * @author ATY
- *
- * @copyright
- * - Copyright 2017 - 2025 MZ-ATY
- * - This code follows:
- * - MZ-ATY Various Contents Joint Statement -
- * <a href="https://mengze.top/MZ-ATY_VCJS">
- * https://mengze.top/MZ-ATY_VCJS</a>
- * - CC 4.0 BY-NC-SA -
- * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
- * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
- * - Your use will be deemed to have accepted the terms of this statement.
- *
- * @brief Familiar functions of AHT20 for all embedded device
- *
- * @version
- * - 1_01_220804 > ATY
- * -# Preliminary version, first Release
- * - 1_02_231229 > ATY
- * -# add multy addr and channel
- ********************************************************************************
- */
- #ifndef __AHT20_ATY_H
- #define __AHT20_ATY_H
- #include "INCLUDE_ATY.h"
- #include "HW_I2C_ATY.h"
- /******************************* For user *************************************/
- // #ifdef __DEBUG_AHT20_ATY
- // #define AHT20_I2C I2C_C1
- /******************************************************************************/
- #define ATH20_ADDRESS 0x38
- #define AHT20_SOFT_RST 0xBA
- #define AHT20_NOR_MODE 0xA8
- #define AHT20_INIT 0xBE
- #define AHT20_TRIG_MEASURE 0xAC
- #define AHT20_STATUS 0x00
- uint8_t AHT20_TemHumGet(uint16_t* ht, uint8_t channel);
- #endif /* __AHT20_ATY_H */
- /******************************** End Of File *********************************/
|