21f2c6a747c756498c6b75c48ea21ea5fbee23c3
Chip-cn-dat/WCH-dat/CH423-dat/CH423-dat.md
... | ... | @@ -10,6 +10,15 @@ https://www.wch-ic.com/products/CH423.html |
10 | 10 | |
11 | 11 | ## code refe |
12 | 12 | |
13 | +folked library as below: |
|
14 | + |
|
13 | 15 | - Linux driver for WCH CH423 - https://github.com/Edragon/ch423-gpio-expander |
14 | 16 | |
15 | -- [[ch423-ard-demo-blink.ino]] - [[ch423-ard-demo-group.ino]] - [[ch423-ard-demo-input.ino]] - [[ch423-ard-demo-ioInterrupt.ino]] - [[ch423-ard-demo-pollInterrupt.ino]] - [[ch423-ard-demo-sleep.ino]] - [[ch423-ard-demo-waterLamp.ino]] |
|
... | ... | \ No newline at end of file |
0 | +- raspberry pi demo code - https://github.com/Edragon/CH423 |
|
1 | + |
|
2 | +- [[ch423-ard-demo-blink.ino]] - [[ch423-ard-demo-group.ino]] - [[ch423-ard-demo-input.ino]] - [[ch423-ard-demo-ioInterrupt.ino]] - [[ch423-ard-demo-pollInterrupt.ino]] - [[ch423-ard-demo-sleep.ino]] - [[ch423-ard-demo-waterLamp.ino]] |
|
3 | + |
|
4 | + |
|
5 | +## ref |
|
6 | + |
|
7 | +- [[I2C-dat]] |
|
... | ... | \ No newline at end of file |
Tech-dat/Interface-dat/I2C-dat/I2C-dat.md
... | ... | @@ -45,6 +45,29 @@ the most easy to use library for ESP |
45 | 45 | - common pullup resistors 1K/4.7K/10K |
46 | 46 | ![](2024-07-10-01-21-40.png) |
47 | 47 | |
48 | + |
|
49 | +## setup for RPI I2C |
|
50 | + |
|
51 | +Driver Installing |
|
52 | + |
|
53 | +1.Enable Raspberry Pi I2C. Skip this step if it is already enabled. Open terminal and input the following commands and press "Enter": |
|
54 | + |
|
55 | + pi@raspberrypi:~ $ sudo raspi-config |
|
56 | + |
|
57 | +Then use the UP/Down keys to select "5 Interfacing Options", press Enter, select "P5 I2C" and press Enter to comfirm "Yes". Restart the Raspeberry Pi board. |
|
58 | + |
|
59 | +2.To install Python dependency library and git, the Raspberry Pi needs to be networked. Skip this step if already installed. In the terminal, input the following commands and press Enter: |
|
60 | + |
|
61 | + pi@raspberrypi:~ $ sudo apt-get update pi@raspberrypi:~ $ sudo apt-get install build-essential python-dev python-smbus git |
|
62 | + |
|
63 | +3.Download the DFRobot_CH423 driver library. In the terminal, type the following commands and press Enter: |
|
64 | + |
|
65 | + pi@raspberrypi:~ $ cd Desktop/ `pi@raspberrypi:~/Desktop $ git clone https://github.com/DFRobot/DFRobot_CH423 |
|
66 | + |
|
67 | + |
|
68 | + |
|
69 | + |
|
70 | + |
|
48 | 71 | ## ref |
49 | 72 | |
50 | 73 | - https://randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/#1 |