未验证 提交 bf53e2b8 编写于 作者: R RefactorFactory 提交者: GitHub

How to use USBHID classes with ESP32-S2 and ESP32-S3 (#7214)

These instructions are based on esp32-arduino-lib-builder's build process, including https://github.com/espressif/esp32-arduino-lib-builder/blob/master/tools/update-components.sh which explains how to clone tinyusb.
上级 5737016c
......@@ -39,6 +39,21 @@ Installation
.. note:: If you use Arduino with ESP-IDF often, you can place the arduino folder into global components folder.
If you're targeting the ESP32-S2 or ESP32-S3 and you want to use USBHID classes such as ``USBHID``, ``USBHIDConsumerControl``, ``USBHIDGamepad``, ``USBHIDKeyboard``, ``USBHIDMouse``, ``USBHIDSystemControl``, or ``USBHIDVendor``:
1. Clone these nested repos somewhere:
.. code-block:: bash
git clone https://github.com/espressif/esp32-arduino-lib-builder.git esp32-arduino-lib-builder && \
git clone https://github.com/hathach/tinyusb.git esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb
2. In the project folder, edit ``CMakeLists.txt`` and add the following before the ``project()`` line:
.. code-block:: bash
set(EXTRA_COMPONENT_DIRS <path to esp32-arduino-lib-builder/components/arduino_tinyusb>)
Configuration
-------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册