From 5d91e9f343a7a6b68d29c6b2d2c4df51cf4eccbe Mon Sep 17 00:00:00 2001 From: atc1441 Date: Sat, 2 Jul 2022 23:01:27 +0200 Subject: [PATCH] Update i2c.c --- ATC_Thermometer/i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ATC_Thermometer/i2c.c b/ATC_Thermometer/i2c.c index 2beb5b1e..9a0b4633 100644 --- a/ATC_Thermometer/i2c.c +++ b/ATC_Thermometer/i2c.c @@ -9,7 +9,7 @@ RAM bool i2c_sending; void init_i2c(){ i2c_gpio_set(I2C_GPIO_GROUP_C2C3); - i2c_master_init(0x78, (uint8_t)(CLOCK_SYS_CLOCK_HZ/(4*400000)) ); + i2c_master_init(0x78, (uint8_t)(CLOCK_SYS_CLOCK_HZ/(4*750000)) ); } void send_i2c(uint8_t device_id, uint8_t *buffer, int dataLen){ @@ -28,4 +28,4 @@ uint8_t test_i2c_device(uint8_t address){ while(reg_i2c_status & FLD_I2C_CMD_BUSY ); return (reg_i2c_status & FLD_I2C_NAK)?0:1; -} \ No newline at end of file +}