From 78a473d5b57b5999dd05b3eed5677ce3aed5f364 Mon Sep 17 00:00:00 2001 From: yelvlab Date: Sun, 29 Dec 2024 22:15:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8main=E5=87=BD=E6=95=B0=E4=B8=AD?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=80=89=E6=8B=A9=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E6=88=96=E8=80=85=E7=A1=AC=E4=BB=B6IIC?= =?UTF-8?q?=E3=80=82=E5=B9=B6=E4=B8=94debug=E6=A8=A1=E5=BC=8F=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E8=AE=BE=E5=A4=87ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.c b/src/main.c index 8c712b7..2ef7858 100644 --- a/src/main.c +++ b/src/main.c @@ -50,9 +50,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();