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: -- -- -- -- -- -- -- --
Содержание EBC-3A1 Series
Страница 1: ...1 EBC 3A1 Series 3 5 SBC with NXP i MX6 Processor ARM Cortex A9 Architecture User Manual Ver 5st ...
Страница 9: ...9 ...
Страница 10: ...10 Chapter 1 Product Overview This chapter provides background information of EBC 3A1 ...
Страница 13: ...13 1 3 Block Diagram ...
Страница 24: ...24 2 4 Mechanical Drawing ...
Страница 25: ...25 Chapter 3 Software User Guide This chapter details the Linux operation on EBC 3A1 ...
Страница 65: ...65 Chapter 5 BSP This chapter introduces how to get board BSP board support package ...