![Nexcom EBC-3A1 Series User Manual Download Page 38](http://html.mh-extra.com/html/nexcom/ebc-3a1-series/ebc-3a1-series_user-manual_1681443038.webp)
38
I2C bus Example
Example Code:
https://github.com/embux/Example/tree/master/i2c_example
Example Commands:
#1: Detect I2C1 ID:
root@ICM-3011:~# i2cdetect 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
#2: Detect I2C2 ID:
root@ICM-3011:~# i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n] Y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- UU -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Summary of Contents for EBC-3A1 Series
Page 9: ...9 ...
Page 10: ...10 Chapter 1 Product Overview This chapter provides background information of EBC 3A1 ...
Page 13: ...13 1 3 Block Diagram ...
Page 24: ...24 2 4 Mechanical Drawing ...
Page 25: ...25 Chapter 3 Software User Guide This chapter details the Linux operation on EBC 3A1 ...
Page 65: ...65 Chapter 5 BSP This chapter introduces how to get board BSP board support package ...