Turn an ESP32-P4 development board with a built-in screen into a small USB secondary display for a Windows PC. You will flash the usb_extend_screen example, adjust it for your board, and test it as a monitor. It suits makers who are comfortable with ESP-IDF and a solder-free USB setup.
YouTube video: Making a USB External Monitor From an ESP32-p4 for Windows
Caption availability is unknown. Check the CC control in the YouTube player.
Choose a chapter (7)
- Video length
- 15 min 2 s
- Time to do it
- 1 to 2 hours
- Difficulty
- Medium
- Steps
- 8
What you need
Steps
Check the ESP32-P4 specs first. The P4 has more memory and USB High Speed support than the ESP32-S3, which matters for pushing a display over USB.
Get an ESP32-P4 board with a screen, such as the Elecrow 10.1 inch ESP32-P4 board used here. Write down the panel resolution and the pins it uses.
Study the Stream32 project and the ESP-IoT Solutions examples to see how this board drives its display. Use them as a reference before you switch to the USB display code.
Clone the esp-iot-solutions repository and open the usb_extend_screen example. This is the firmware that makes the board appear as a USB display.
Adapt the example to your hardware. Set the target to esp32p4, then change the LCD resolution, timing and pin settings to match your board.
Build the project with ESP-IDF and flash it to the board over USB. Hold the boot button if the board does not enter download mode by itself.
Connect the board to your Windows PC with a USB data cable. Open Settings, System, Display, then arrange the new screen and set its resolution and scale.
Install MacroDeck on the PC if you want touch macro buttons. Point it at the new display and lay out the buttons you need.
Tips and common mistakes
Use a USB cable that carries data, not a charge-only cable, or Windows will never see the display.
Match the panel resolution and timings exactly, or you may get a blank screen or a shifted image.
Expect a lower refresh rate and some compression artefacts compared with a real monitor.
If the screen draws a lot of power, connect the board through a powered USB hub.
Questions
Does it show up as a normal second monitor in Windows?
Yes. Once the usb_extend_screen firmware is running, Windows lists the board under Display settings as an extra screen you can extend to or duplicate.
Do I need to write code myself?
You need to edit the example's board settings and build it with ESP-IDF. The display and USB logic is already in the example, so no coding from scratch is needed.
Can I use a different ESP32-P4 board?
Yes, as long as it has a compatible LCD interface and enough memory. You must change the pin and panel settings to match your board.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


