Skip to content

Commit

Permalink
update:i2c tools使用低速探测
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Jan 13, 2023
1 parent ccc80b4 commit bd0c535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/i2c-tools/i2c_utils.c
Expand Up @@ -28,7 +28,7 @@ void i2c_help(void){

uint8_t i2c_init(const uint8_t i2c_id){
i2c_tools_id = i2c_id;
return (luat_i2c_setup(i2c_tools_id, 1));
return (luat_i2c_setup(i2c_tools_id, 0));
}

uint8_t i2c_probe(char addr){
Expand All @@ -50,7 +50,7 @@ uint8_t i2c_read(uint8_t addr, uint8_t reg, uint8_t* buffer, uint8_t len){
}

void i2c_scan(void){
LLOGD(" 0 1 2 3 4 5 6 7 8 9 a b c d e f");
LLOGD("ID 0 1 2 3 4 5 6 7 8 9 a b c d e f");
char buff[64] = {0};
for(unsigned char i=0; i<8; i++){
sprintf_(buff, "%d0: ", i);
Expand Down

0 comments on commit bd0c535

Please sign in to comment.