规范第一版超声与红外代码函数,红外可以添加更多函数,待学习。同时修改CMakeList在生成bin与hex文件时的命名,以便区分。CMakeList与.h头文件的联动尚未实现。

This commit is contained in:
2024-10-10 14:56:13 +08:00
parent ea7d68e35e
commit 8ad278f76b
11 changed files with 133 additions and 1020 deletions

View File

@@ -23,7 +23,10 @@
#define REG_ADDR_OBJ_TEMP 0x07
#define REG_ADDR_AMB_TEMP 0x06
/* function declarations */
/* this function configures I2C Peripheral & GPIO AF for I2C */
void MLX90614_I2CConfig(void);
/* this function reads object temperature */
uint16_t MLX90614_GetObjectTemperature(void);
#endif //MLX90614_H