|
|
%!s(int64=4) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| main | %!s(int64=3) %!d(string=hai) anos | |
| CMakeLists.txt | %!s(int64=3) %!d(string=hai) anos | |
| README.md | %!s(int64=3) %!d(string=hai) anos | |
| sdkconfig.defaults | %!s(int64=3) %!d(string=hai) anos | |
| Supported Targets | ESP32-S2 | ESP32-S3 |
|---|
(See the README.md file in the upper level 'examples' directory for more information about examples.)
This example shows how to extend CDC-ACM driver for Virtual Communication Port devices, such as CP210x or FTDI FT23x devices.
idf.py menuconfig and navigating to Example Configuration -> USB-to-UART device typecdc_acm_vcp.cpp to match your needshandle_rx callbackConnect USB_D+, USB_D-, GND and +5V signals of your ESP chip to matching signals on USB to UART converter.
See common pin assignments for USB Device examples from upper level.
Build this project and flash it to the USB host board, then run monitor tool to view serial output:
idf.py -p PORT flash monitor
(Replace PORT with the name of the serial port to use.)
(To exit the serial monitor, type Ctrl-].)
See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.