Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 2.94 KB

README_en.md

File metadata and controls

67 lines (42 loc) · 2.94 KB

ch347-py

中文

Introduction

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.

Installation

From Source

git clone https://github.com/pengwon/ch347-py.git
cd ch347-py

Using pip

[TODO]

You can install this library using pip:

pip install ch347-py

Usage

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)

Testing

This project includes some test scripts. You can run these scripts to test and demonstrate how to use this library.

References

  1. Reading and displaying data from the MPU6050 sensor
  2. Reading and writing SPI Flash
  3. Connecting MPU6050
  4. Using the INA226 ammeter
  5. Detailed explanation of I2C
  6. Python encapsulation of dynamic libraries
  7. Detailed explanation of SPI

License

The license used by this project is given in the LICENSE file.

Contributions

Contributions to this project are welcome. Before submitting a Pull Request, please make sure your code passes all tests.

Contact

If you encounter any problems while using this library, or have any suggestions and feedback, please contact us through GitHub Issues.