1
0
mirror of https://github.com/whowechina/chu_pico.git synced 2024-11-24 11:00:10 +01:00

Again better timing

This commit is contained in:
whowechina 2023-12-10 15:25:19 +08:00
parent 7f991e3d5f
commit f8a8f1f0a2
3 changed files with 1 additions and 2 deletions

Binary file not shown.

View File

@ -8,7 +8,7 @@
#define I2C_PORT i2c0 #define I2C_PORT i2c0
#define I2C_SDA 16 #define I2C_SDA 16
#define I2C_SCL 17 #define I2C_SCL 17
#define I2C_FREQ 633*1000 #define I2C_FREQ 620*1000
#define I2C_HUB_EN 19 #define I2C_HUB_EN 19

View File

@ -28,7 +28,6 @@ static inline void i2c_hub_init()
static inline void i2c_select(i2c_inst_t *i2c_port, uint8_t chn) static inline void i2c_select(i2c_inst_t *i2c_port, uint8_t chn)
{ {
i2c_write_blocking_until(i2c_port, I2C_HUB_ADDR, &chn, 1, false, time_us_64() + 1000); i2c_write_blocking_until(i2c_port, I2C_HUB_ADDR, &chn, 1, false, time_us_64() + 1000);
sleep_us(1);
} }
#endif #endif