Introduction
This example demonstrates reading data from I2C based EEPROM devices present in the board. Application reads 20 samples from the EEPROM and exits.
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
r5fss0-0 freertos |
Toolchain | ti-arm-clang |
Boards | am263x-cc, am263x-lp |
Example folder | examples/drivers/i2c/i2c_read |
Steps to Run the Example
See Also
I2C
Sample Output
Shown below is a sample output when the application is run,
[I2C] Read data ... !!!
[I2C] Sample 0: 49
[I2C] Sample 1: 48
[I2C] Sample 2: 48
[I2C] Sample 3: 49
[I2C] Sample 4: 65
[I2C] Sample 5: 0
[I2C] Sample 6: 0
[I2C] Sample 7: 0
[I2C] Sample 8: 48
[I2C] Sample 9: 49
[I2C] Sample 10: 48
[I2C] Sample 11: 49
[I2C] Sample 12: 51
[I2C] Sample 13: 50
[I2C] Sample 14: 50
[I2C] Sample 15: 51
[I2C] Sample 16: 0
[I2C] Sample 17: 0
[I2C] Sample 18: 0
[I2C] Sample 19: 0
[I2C] Read data ... DONE !!!
All tests have passed!!