在main函数中自动选择初始化软件或者硬件IIC。并且debug模式打印设备ID

This commit is contained in:
yelvlab 2024-12-29 22:15:10 +08:00
parent 0ac221ce6f
commit 19e73080e6

View File

@ -61,9 +61,16 @@ int main(void) {
// watchdog_init();
/* configure I2C */
#ifdef SOFTWARE_IIC
soft_i2c_config();
#else
i2c_config();
#endif
#ifdef DEBUG_VERBOES
ldc1612_iic_get_sensor_infomation();
#endif
/* configure LDC1612 */
ldc1612_single_ch0_config();