adding gpio and i2c pages (draft)
This commit is contained in:
parent
27c7668e4c
commit
e4f7b4e40f
2 changed files with 27 additions and 0 deletions
27
docs/helios64/i2c.md
Normal file
27
docs/helios64/i2c.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
### Check I2C Communication
|
||||
|
||||
To check if the system can communicate with the I2C device, we should first scan the I2C bus to see if we can detect the device.
|
||||
|
||||
1. Install the Linux i2c tools.
|
||||
|
||||
```
|
||||
$ sudo apt-get install i2c-tools
|
||||
```
|
||||
|
||||
2. Use **i2cdetect** tool to scan I2C Bus 1.
|
||||
|
||||
```
|
||||
root@helios64:~# i2cdetect -y 1
|
||||
|
||||
0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
00: -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
|
||||
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
70: -- -- -- -- -- -- -- --
|
||||
```
|
||||
|
||||
Here we can see there is a device detected at the address 0x3c. We can conclude is our OLED screen, unless you have connected more than just one I2C device on the **J9** header.
|
BIN
docs/helios64/img/hardware/gpio.jpg
Normal file
BIN
docs/helios64/img/hardware/gpio.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Loading…
Reference in a new issue