sdima1357/esp32_usb_soft_host
关于
通过通用 I/O 引脚实现 ESP32 软件 USB 主机,可同时连接多达 4 个 USB 低速 HID 设备(键盘、鼠标和操纵杆)。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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

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
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 :

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.
探索相关项目
加载中…