Skip to content

Commit

Permalink
Changed i2c speed
Browse files Browse the repository at this point in the history
  • Loading branch information
atc1441 committed Jul 2, 2022
1 parent 5d91e9f commit 6032c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ATC_Thermometer/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*750000)) );
i2c_master_init(0x78, (uint8_t)(CLOCK_SYS_CLOCK_HZ/(4*600000)) );
}

void send_i2c(uint8_t device_id, uint8_t *buffer, int dataLen){
Expand Down

0 comments on commit 6032c40

Please sign in to comment.