|
| 1 | +## USB Extension Screen Example |
| 2 | + |
| 3 | +Try with [LaunchPad](https://espressif.github.io/esp-launchpad/?flashConfigURL=https://dl.espressif.com/AE/esp-iot-solution/config.toml) |
| 4 | + |
| 5 | +The USB Extension Screen Example allows the P4 development board to be used as an additional screen for Windows. It supports the following features: |
| 6 | + |
| 7 | +* Supports a screen refresh rate of 1024*600@60FPS |
| 8 | +* Supports up to five touch points |
| 9 | +* Supports audio input and output |
| 10 | + |
| 11 | +## Required Hardware |
| 12 | + |
| 13 | +* Development Board |
| 14 | + 1. [ESP32-P4-Function-EV-Board](https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32p4/esp32-p4-function-ev-board/user_guide.html#getting-started) development board |
| 15 | + 2. A 1024*600 MIPI screen from the development kit |
| 16 | + 3. A speaker |
| 17 | + |
| 18 | +* Connections |
| 19 | + 1. Connect the high-speed USB port on the development board to the PC |
| 20 | + |
| 21 | +## Compilation and Flashing |
| 22 | + |
| 23 | +### P4 Device Side |
| 24 | + |
| 25 | +Build the project and flash it to the board, then run the monitor tool to view serial output: |
| 26 | + |
| 27 | +* Run `. ./export.sh` to set up the IDF environment |
| 28 | +* Run `idf.py set-target esp32p4` to set the target chip |
| 29 | +* If there are any errors in the previous step, run `pip install "idf-component-manager~=1.1.4"` to upgrade your component manager |
| 30 | +* Run `idf.py -p PORT flash monitor` to build, flash, and monitor the project |
| 31 | + |
| 32 | +(To exit the serial monitor, press `Ctrl-]`.) |
| 33 | + |
| 34 | +Refer to the Getting Started Guide for all steps to configure and use ESP-IDF to build projects. |
| 35 | + |
| 36 | +> Note: This example will fetch an AVI file online. Ensure that you are connected to the internet during the initial compilation. |
| 37 | +
|
| 38 | +### PC Side |
| 39 | + |
| 40 | +For preparation, refer to the [windows_driver](./windows_driver/README.md) |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +## Other Issues |
| 45 | + |
| 46 | +### Touch Screen Does Not Control the P4 Screen |
| 47 | + |
| 48 | +* In the Control Panel, select `Tablet PC Settings` |
| 49 | +* In the configuration section, select `Setup` |
| 50 | +* Follow the prompts to choose the P4 extension screen |
| 51 | + |
| 52 | +### Adjusting JPEG Image Quality |
| 53 | + |
| 54 | +* Modify the `string_desc_arr` vendor interface string in the `usb_descriptor.c` file. Change `Ejpg4` to the desired image quality level; the higher the number, the better the quality, but it will use more memory for the same frame. |
0 commit comments