AnsweredAssumed Answered

HAL I2C bus scan tool

Question asked by john doe on May 14, 2017
Latest reply on May 14, 2017 by Gerardo Gallucci

silly little nothing that just scans the i2c bus and prints the address of any found devices

 

output should look similar to this:

Connected to UART Two

Scanning I2C bus:
...............................................................................................0x60.......0x68.......................

 

remember that the HAL wants a left aligned i2c address so 0x60 would be (uint16_t)(0x60<<1) when used in a HAL i2c system call

Outcomes