ch347-py
is a Python binding library for driving the CH347 chip. It provides a simple way to interact with the CH347 chip, and can be used to develop applications for I2C, SPI, and other communication interfaces.
git clone https://github.com/pengwon/ch347-py.git
cd ch347-py
[TODO]
You can install this library using pip:
pip install ch347-py
First, you need to import the CH347
class from the ch347
module:
from ch347 import CH347
Then, you can create an instance of the CH347
class and use its methods to interact with the CH347 chip. For example:
driver = CH347()
driver.spi_write(0x00, [0xFF] * 10)
This project includes some test scripts. You can run these scripts to test and demonstrate how to use this library.
- Reading and displaying data from the MPU6050 sensor
- Reading and writing SPI Flash
- Connecting MPU6050
- Using the INA226 ammeter
- Detailed explanation of I2C
- Python encapsulation of dynamic libraries
- Detailed explanation of SPI
The license used by this project is given in the LICENSE
file.
Contributions to this project are welcome. Before submitting a Pull Request, please make sure your code passes all tests.
If you encounter any problems while using this library, or have any suggestions and feedback, please contact us through GitHub Issues.