72ca52216e7bb5275bdcf74ec55f87a5ac69773e
Board-dat/MPC/MPC1083-dat/MPC1083-dat.md
... | ... | @@ -35,19 +35,30 @@ ADR1 = pull-up, ADR2 = pull-down |
35 | 35 | |
36 | 36 | * The remaining pins are unused, You can use them for your other hardware boards. |
37 | 37 | |
38 | +### mode and address select |
|
39 | + |
|
40 | +MOD1 - GND, MOD2 - VCC = I2C |
|
41 | +MOD1 - VCC, MOD2 - any = SPI |
|
42 | +MOD1 - GND, MOD2 - GND = Hardware |
|
43 | + |
|
44 | +| mod1 | add2 | add1 | mod2 | note | |
|
45 | +| ---- | ---- | ---- | ---- | ------------- | |
|
46 | +| GND | GND | VCC | VCC | I2C address = | |
|
47 | + |
|
48 | + |
|
38 | 49 | ## Software |
39 | 50 | |
40 | 51 | - Volumio - [[volumio-dat]] |
41 | 52 | - MoOde |
42 | 53 | - LibreELEC |
43 | 54 | - Max2play |
44 | -- Raspbian - [[RPI-OS-dat]] |
|
55 | +- Raspbian - [[RPI-OS-dat]] - [[PCM5122-RPI-dat]] |
|
45 | 56 | - OSMC |
46 | 57 | |
47 | 58 | ## ref |
48 | 59 | |
49 | -- [[PCM5122-dat]] - [[TI-dat]] |
|
60 | +- [[PCM5122-dat]] - [[TI-dat]] - [[RPI-OS-dat]] - [[PCM5122-RPI-dat]] |
|
50 | 61 | |
51 | 62 | - [[I2S-dat]] - [[I2C-dat]] - [[infrared-dat]] - [[eeprom-dat]] - [[memory-dat]] |
52 | 63 | |
53 | -- [[PCM1083]] |
|
... | ... | \ No newline at end of file |
0 | +- [[MPC1083]] |
|
... | ... | \ No newline at end of file |
Board-dat/MPC/MPC1101-dat/MPC1101-dat.md
... | ... | @@ -0,0 +1,12 @@ |
1 | + |
|
2 | +# MPC1101-dat |
|
3 | + |
|
4 | + 0 1 2 3 4 5 6 7 8 9 a b c d e f |
|
5 | + 00: -- -- -- -- -- -- -- -- |
|
6 | + 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
7 | + 20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
8 | + 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
9 | + 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- UU -- -- |
|
10 | + 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
11 | + 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- |
|
12 | + 70: -- -- -- -- -- -- -- -- |
|
... | ... | \ No newline at end of file |
Tech-dat/Interface-dat/I2C-dat/I2C-dat.md
... | ... | @@ -65,7 +65,24 @@ Then use the UP/Down keys to select "5 Interfacing Options", press Enter, select |
65 | 65 | pi@raspberrypi:~ $ cd Desktop/ `pi@raspberrypi:~/Desktop $ git clone https://github.com/DFRobot/DFRobot_CH423 |
66 | 66 | |
67 | 67 | |
68 | +### I2C scan in RPI |
|
68 | 69 | |
70 | +install scan |
|
71 | + |
|
72 | + sudo apt-get install -y i2c-tools |
|
73 | + |
|
74 | +scan |
|
75 | + i2cdetect -y 1 |
|
76 | + |
|
77 | +test |
|
78 | + |
|
79 | +Write data to the PCM5122 registers (replace 0x4C with the correct I2C address): |
|
80 | + |
|
81 | + i2cset -y 1 0x4C <register> <value> |
|
82 | + |
|
83 | +Read data from the PCM5122: |
|
84 | + |
|
85 | + i2cget -y 1 0x4C <register> |
|
69 | 86 | |
70 | 87 | |
71 | 88 | ## ref |