/** * @file AHT20_ATY.h * * @param Project DEVICE_GENERAL_ATY_LIB * * @author ATY * * @copyright * - Copyright 2017 - 2023 MZ-ATY * - This code follows: * - MZ-ATY Various Contents Joint Statement - * * https://mengze.top/MZ-ATY_VCJS * - CC 4.0 BY-NC-SA - * * https://creativecommons.org/licenses/by-nc-sa/4.0/ * - 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 ******************************************************************************** */ #ifndef __AHT20_ATY_H #define __AHT20_ATY_H #include "INCLUDE_ATY.h" #include "HW_I2C_ATY.h" /******************************* For user *************************************/ // #ifdef __DEBUG_AHT20_ATY /******************************************************************************/ #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); #endif /* __AHT20_ATY_H */ /******************************** End Of File *********************************/