keil/include/drivers/lis3dh_driver.c
@@ -198,11 +198,11 @@ io_pin_mux_set(SCL_PIN, IO_FUNC0); gpio_pin_set_dir(SDA_PIN , GPIO_DIR_OUT, 1); io_open_drain_set(SDA_PIN, 1); io_pull_set(SDA_PIN , IO_HIGH_Z, IO_PULL_UP_NONE);//输出高阻态 // io_open_drain_set(SDA_PIN, 1); io_pull_set(SDA_PIN , IO_PULL_UP, IO_PULL_UP_LEVEL2);//输出高阻态 gpio_pin_set_dir(SCL_PIN , GPIO_DIR_OUT, 1); io_open_drain_set(SCL_PIN, 1);//设置开漏输出 //io_open_drain_set(SCL_PIN, 1);//设置开漏输出 io_pull_set(SCL_PIN , IO_HIGH_Z, IO_PULL_UP_NONE); }