### 驱动步骤
1.首先发送AHT10的驱动指令 char INIT_CMD[3] = { 0xE1, 0x08, 0x00 };
2.发送测量指令 uint8_t START_MEASUREMENT_CMD[3] = { 0xAC, 0x33, 0x00 };
3.使用HAL_I2C_Master_Receive 读取寄存器 HAL_I2C_Master_Receive(&hi2c1, AHT10_ADRESS, rawBuff, 6, 0xff);
在stm32中 使用 HAL_I2C_Master_Transmit(&hi2c1, AHT10_ADRESS, INIT_CMD, 3, 0xffff); 发送
参数直接为设备地址 指令数组 数组大小即可
在stm32中 使用 HAL_I2C_Master_Receive(&hi2c1, AHT10_ADRESS, rawBuff, 6, 0xff); 接受
参数直接为设备地址 接收的数组 接收的数组大小 即可 就是这么简单
int main(void) {
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* US