MIT License

项目介绍

i2cy/CH347-HIDAPI 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 58 个 Star、10 次 Fork。

仓库全名
i2cy/CH347-HIDAPI
开源许可证
MIT License
Star 数
58
Fork 数
10
未关闭 Issue
2

README 摘要

CH347-HIDAPI Python Library + CH347-HIDAPI Github Page + Abstract This project is the API library of CH347T USB-SPI/I2C/UART bridge chip based on Python. Standard USB-HID mode setting of CH347T chip supported only This library provides full access of SPI/I2C/UART settings and communication with CH347 USB-SPI/I2C/UART bridge chip in Python language. For demonstration and code reference please refer to the demo.py…

完整内容见 GitHub 原始 README 或本页 。

常见问题

CH347-HIDAPI 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 58 个 Star。

CH347-HIDAPI 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 CH347-HIDAPI 的源码?

可以直接克隆仓库:git clone https://github.com/i2cy/CH347-HIDAPI.git,默认分支为 master;安装与运行步骤见仓库 README。

CH347-HIDAPI 最近还在维护吗?

仓库最近一次更新为 2025年12月21日,当前有 2 个未关闭 Issue;Star 数为 58,可作为社区活跃度的参考。

关于

A Python Library provides full access of SPI/I2C/UART settings and communication with CH347 USB-SPI/I2C/UART bridge chip in Python language.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
81
价值分
37
活跃状态
活跃

语言占比

Batchfile
Python

README

CH347-HIDAPI Python Library

+ CH347-HIDAPI Github Page +

license pypi python

Abstract

This project is the API library of CH347T USB-SPI/I2C/UART bridge chip based on Python.

Standard USB-HID mode setting of CH347T chip supported only

This library provides full access of SPI/I2C/UART settings and communication with CH347 USB-SPI/I2C/UART bridge chip in Python language.

For demonstration and code reference please refer to the demo.py file in source page.

CH347-Chip Official Site

Installation

pip install ch347api

Requirements

Python >= 3.7 hidapi

CAUTION

The communication protocol with CH347 through USB-HID I wrote in this project based on the official demonstration APP. In other words that it was inferred from captured HID package when APP communicates.

THUS, THIS API MAY NOT FULLY CAPABLE OF EVERY FUNCTION IN OFFICIAL API FROM CH347DLL.DLL.

Update Notes

2024-01-12
  1. Now with fully compatible UART (UART1 with pins TXD1/RXD1/RTS1/CTS1/DTR1) support under mode 3 (which is HID mode),
  2. Baudrate supports ranging from 1.2K to 9M
  3. Multithread receiver for UART (optional, default is on) to receive the data in parallel
2024-01-08
  1. Added independent I2C interface class objects (I2CDevice) and SPI interface class objects (SPIDevice)
  2. Added new demo file demo.py to demonstrate the usage of classes added above (simplified code)
  3. Added device lock to make thread safe
2023-08-06
  1. Now with fully compatible I2C support, I2C clock speed level: 0 -> 20KHz, 1 -> 100KHz, 2 -> 400KHz, 3 -> 750KHz
  2. Added test.py for demonstration

评论

暂无评论