1# USB-OTG Examples 2 3See the [README.md](../README.md) file in the upper level [examples](../) directory for more information about examples. 4 5## Common Pin Assignments 6 7Pin assignment is only needed for ESP chips that have an USB-OTG peripheral. 8If your board doesn't have a USB connector connected to the USB-OTG dedicated GPIOs, you may have to DIY a cable and connect **D+** and **D-** to the pins listed below. 9 10``` 11ESP BOARD USB CONNECTOR (type A) 12 -- 13 | || VCC 14[USBPHY_DM_NUM] ------> | || D- 15[USBPHY_DP_NUM] ------> | || D+ 16 | || GND 17 -- 18``` 19Refer to `soc/usb_pins.h` to find the real GPIO number of **USBPHY_DP_NUM** and **USBPHY_DM_NUM**. 20 21| | USB_DP | USB_DM | 22| ----------- | ------ | ------ | 23| ESP32-S2/S3 | GPIO20 | GPIO19 | 24