Run your first ESP32 app
Deploy an RGB LED app to an ESP32-C6, change its timing, and verify the update.
Requirements and learning goals
Before you start
- ESP32-C6-DevKitC-1 with its onboard RGB LED and a USB data cable
- Git and the Wendy CLI installed on your computer
You will be able to
- Install Wendy Lite and deploy native ESP-IDF code
- Change the LED pattern and verify it survives a restart
Start with a visible result
The ESP32 is a : a small computer that runs to read sensors and control hardware. ESP-IDF is Espressif's C/C++ development framework. adds device management, and the Wendy CLI builds and deploys your app.
Start with an LED so you can prove that your code reached the board before adding sensors. This example uses the ESP32-C6's addressable RGB LED on 8. Other boards can have different pins or LED drivers. ESP32 support is currently beta.
Need the CLI? Follow the installation guide.
The same edit-and-run workflow carries into the sensor alarm, so adding inputs does not require a new deployment process.
1. Install Wendy Lite
If your board already has Wendy Lite with native app support, skip to step 2. For a fresh board, connect its native USB port and run:
wendy installSelect ESP32-C6, your board, and the firmware variant labeled native app support. Installing firmware replaces the board's existing program.
After reboot, check that the board is discoverable:
wendy discoverFind your board under Nearby and press q to return to the terminal.
2. Get the LED example
Download just the example's source:
git clone --depth 1 --filter=blob:none --sparse \
https://github.com/wendylabsinc/WendyOS.git esp32-workshop
cd esp32-workshop
git sparse-checkout set Examples/ESP32c6-NeoPixel
cd Examples/ESP32c6-NeoPixelRun the app and select your ESP32 when prompted:
wendy runAccept the toolchain and wendy_core setup prompts if shown. Wendy manages the ESP-IDF build, deployment, reboot, and logs. If EIM is unavailable, follow the ESP32 setup prerequisites.
3. Make it yours
In main/main.c, replace the loop's vTaskDelay(...) line with:
vTaskDelay(pdMS_TO_TICKS(200));Run the same wendy run command again.
Expected result
The LED cycles red, green, blue, and off. Each step now lasts 200 ms instead of 750 ms. Unplug and reconnect the board: the faster pattern should return.
Troubleshooting
- No device: check the USB data cable, port, and board selection.
- No light: verify GPIO 8 and the RGB LED against your board's pinout. The power LED is separate.
- Build error: read the first error and complete the managed toolchain setup.
Source: ESP32-C6 LED example.
Before you move on
Can you do each of these?
- Install Wendy Lite and deploy native ESP-IDF code
- Change the LED pattern and verify it survives a restart
0 of 2 checkpoints solved. Try checkpoint 1
All lessons in this topic
- 1. Install Wendy Lite on your ESP32
- 2. Update an ESP32 app over Wi-Fi
- 3. Find your ESP32 on Wendy Net
- 4. Use ESP32 sensors from Linux and ROS 2
- 5. Run your first ESP32 app
- 6. Read a button, sample voltage, and drive PWM
- 7. Connect ESP32 sensors with I²C, SPI, and UART
- 8. Handle ESP32 interrupts and detect stalled work
- 9. Build an ESP32 alarm that tolerates noisy readings