Upload code. Press a color. Check the board.
Use the built-in RGB light for a complete ESP32-S3 debug loop. Prepare main.py, upload it, press Red, Green, or Blue in the browser, and compare the light with the board's log.
Preview for the current ESP32-S3 N16R8 kit board. Browser behavior and the upload protocol still need a final connected-board check.

One complete development loop
FOUR CHECKPOINTS- 01Prepare
Put the RGB demo in ESP32/main.py.
- 02Connect
Choose the board’s current serial port.
- 03Upload
Write main.py and wait for a real [BOOT] line.
- 04Test
Press three colors and compare light with logs.
WATCH THE DEVELOPMENT LOOP
One file, three colors, real feedback
Follow the RGB demo from ESP32/main.py through USB connection, upload, restart, three browser color buttons, board logs, and Disconnect.
- Prepare and connectSave
main.pyand choose the current serial port. - Upload and prove startupSeparate file-write progress from a real
[BOOT]line. - Press and compareCheck Red, Green, and Blue against
[RGB]replies, then disconnect.
Color changes and serial replies in the video are labeled illustrations. Verify the light and log on your own board.
Before you start
Use the board's own light.
Finish P02 with a usable MicroPython REPL and close any other program holding the serial port. Use a data-capable USB cable in the socket marked USB. This demo needs no extra wiring; confirm that your current kit board's RGB light is on GPIO48.
EXAMPLE LOCAL PROJECT
My-ESP32-project/
ESP32/
main.py
webdebugger/
index.html
app.js
styles.cssThe ESP32 folder holds the file that runs on the board. A local webdebugger can be created with the optional prompt below; the P03 browser debugger is ready to use. In either route, choose only the ESP32 folder for upload.
Updating /main.py changes the program stored on the board. Installing or updating the MicroPython firmware image is the separate P02 procedure.
If either is unknown, return to P02 before uploading program files.
Step 1 · Prepare main.py
Start with a board-only RGB demo.
Save the ready file as ESP32/main.py, or use this short prompt to make the same program in your local project. It accepts three color words and prints [BOOT], [DEBUG], [RGB], or [ERROR] lines. No external parts are needed.
Create a single ESP32/main.py for my MoloWorks ESP32-S3 N16R8 MicroPython board. Its confirmed onboard WS2812 RGB light uses GPIO48. Use neopixel at low brightness. On startup print [BOOT] P03_RGB_DEMO with a version and [DEBUG] ready. Read one serial line at a time: RED, GREEN, or BLUE. Change the light and print [RGB] with the chosen color only after writing it. Print [ERROR] for an unknown command. No extra wiring or parts. Show me the file and how to check it, but do not claim it ran until I share real board output.The ready file below is the exact program used in this lesson.
ESP32/main.py is ready before upload.Check the current board marking and GPIO48 LED assignment. A local file is not yet proof that the board ran it.
Step 2 · Run the complete loop
Connect, upload, press a color, and read the reply.
Open the P03 debugger in desktop Chrome or Edge on this HTTPS site or on localhost. Choose the serial port and project folder separately.
- 01
Plug in and connect
Use the board's USB socket and a data-capable cable. Click Connect ESP32, choose its current port, and check that the page says Connected. Keep other serial tools closed.
- 02
Review main.py
Choose the local
ESP32folder. Confirm thatmain.pymaps to/main.pyand is the only selected file for this demo. - 03
Upload and prove startup
Click Upload selected files. Wait for the file result and restart request. Look for a fresh
[BOOT] P03_RGB_DEMOline before testing the buttons. - 04
Press and compare
Press Red, Green, then Blue. For each one, compare the actual onboard light with the
[RGB] color=...line. The page reports a missing reply rather than guessing success. Click Disconnect when done.
[BOOT] line appears and each button gets a matching [RGB] reply and visible light color.A file progress bar proves only the write. A log reply proves what the program reported; you still check the physical light.
Step 3 · Optional local tool
Ask AI to build your own debugger.
The ready-to-use P03 tool above completes this lesson. If you want a local copy beside your project, this prompt follows the Test0919A pattern: connect, upload, and read the board's log, now with three RGB buttons.
Inspect my ESP32 project first. Build a small webdebugger/ beside ESP32/ for desktop Chrome or Edge using Web Serial at 115200 baud. Show four UI steps: 01 Connect ESP32 and display Disconnected/Connected; 02 choose a local folder and review files and board paths; 03 Upload selected files and request a normal restart; 04 send RED/GREEN/BLUE with three buttons and show each [RGB] reply. Add Disconnect and timestamped [BOOT]/[DEBUG]/[ERROR] logs. Distinguish file-write completion from a fresh [BOOT] line. Keep files and logs local. Test without hardware and list what needs my board.Use your P01 AI coding tool in the intended local project folder.
Step 4 · Improve from evidence
Use the light and log to decide the next edit.
After pressing a color, note both what you saw on the board and what the debugger printed. Give AI the actual difference, then upload the revised main.py and compare another run.
Help me debug the P03 onboard RGB demo using my real results. I pressed [RED, GREEN, OR BLUE]. I saw [ACTUAL LIGHT COLOR OR NO CHANGE]. The debugger showed [PASTE THE BOOT, RGB, DEBUG, OR ERROR LINES]. Compare the command, board reply, and visible light. If one result is missing, ask for one next check. Otherwise propose the smallest change to ESP32/main.py, update its version, and tell me what to upload and observe again. Do not invent a successful color change.Remove Wi-Fi credentials, IDs, and personal information before sharing logs.
Finish the loop
Keep the light and log together.
Record the program version, color button pressed, visible LED color, and matching [RGB] line. Disconnect in the debugger before another tool opens the port.
