GNU Affero General Public License v3.0

项目介绍

sdima1357/esp32_usb_soft_host 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 GNU Affero General Public License v3.0 许可证,目前获得 495 个 Star、57 次 Fork。

仓库全名
sdima1357/esp32_usb_soft_host
开源许可证
GNU Affero General Public License v3.0
Star 数
495
Fork 数
57
未关闭 Issue
7

README 摘要

esp32usbsofthost esp32 USB-LS pure software host thru general IO pins. Up to 4 HID devices simultaneously. Code is compatible with ESP-IDF version export IDFPATH=$HOME/esp/esp-idf source $HOME/esp/esp-idf/export.sh //connect the board, build & flash git clone https://github.com/sdima1357/esp32usbsofthost cd esp32usbsofthost/usbtest/ idf.py set-target esp32 idf.py menuconfig Please set in Menuconfig->compiler options…

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

常见问题

esp32_usb_soft_host 用什么语言开发?

主要使用 C 编写,采用 GNU Affero General Public License v3.0 许可证,目前有 495 个 Star。

esp32_usb_soft_host 可以免费商用吗?

仓库标注的许可证为 GNU Affero General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 esp32_usb_soft_host 的源码?

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

esp32_usb_soft_host 最近还在维护吗?

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

关于

ESP32 software USB host through general IO pins. We can connect up to 4 USB-LS HID (keyboard mouse joystick) devices simultaneously.

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

简要分析

热度分
623
价值分
315
活跃状态
活跃

语言占比

C
CMake
Makefile

README

esp32_usb_soft_host

esp32 USB-LS pure software host thru general IO pins. Up to 4 HID devices simultaneously.

Code is compatible with ESP-IDF version < 5.0, latest: https://github.com/espressif/esp-idf/releases/tag/v4.4.8

image1

board ~$3 :https://www.aliexpress.com/premium/LOLIN32.html or any of https://www.aliexpress.com/premium/ESP32.html

usb connectors(for example): https://www.aliexpress.com/item/1005002027124387.html

//set right esp32 env for me it:

export IDF_PATH=$HOME/esp/esp-idf

source $HOME/esp/esp-idf/export.sh

//connect the board, build & flash

git clone https://github.com/sdima1357/esp32_usb_soft_host

cd esp32_usb_soft_host/usb_test/

idf.py set-target esp32

idf.py menuconfig

Please set in Menuconfig->compiler options -> optimization level> O2 ( must be in O2 options. “idf.py set-target esp32” resets it to Og ,I don’t know why)

idf.py flash monitor

Test run with 3 mouses, $3 CY7C68013A logic analyser and amazing program https://sigrok.org/wiki/PulseView :

image2

Tue Aug 31 15:50:48 IDT 2021

Add esp32c3 support.

idf.py set-target esp32c3

idf.py menuconfig

set in:

Menuconfig->compiler options -> optimization level> O2

only for esp32c3: Component config-> ESP System Setting -> Memory protection-> Disable.

idf.py flash monitor

Warning(disclaimer): Sorry, but target of this project right now - only research & proof of feasibility. I can’t debug hardware which i don’t have. Some hardware(devices) may not work, from different reasons. In the case of problem i suggest to check wires & use $3 CY7C68013A logic analyser. Sometimes i can help.

评论

暂无评论