feat: 添加AHT30温湿度传感器驱动及显示功能
实现AHT30温湿度传感器的I2C驱动 新增传感器任务定期读取数据 优化LCD显示界面,增加温湿度显示 添加I2C硬件和软件扫描功能 修复I2C引脚配置问题
This commit is contained in:
@@ -74,6 +74,7 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
|
||||
GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
|
||||
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
||||
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
|
||||
|
||||
/* I2C1 clock enable */
|
||||
|
||||
Reference in New Issue
Block a user