Run your first ESP32 app

Deploy an RGB LED app to an ESP32-C6, change its timing, and verify the update.

Guided walkthrough·Beginner·3 min read
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 install

Select 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 discover

Find your board under Nearby and press q to return to the terminal.

Checkpoint 1 of 2

A borrowed board still runs its previous owner's program. You run wendy install and select the native app support firmware. What happens to that program?

Commit to an answer. Every choice explains itself.

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-NeoPixel

Run the app and select your ESP32 when prompted:

wendy run

Accept 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.

Checkpoint 2 of 2

The LED already cycles faster right after wendy run. What does unplugging and reconnecting the board add to that check?

Commit to an answer. Every choice explains itself.

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.

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

Previous: Use ESP32 sensors from Linux and ROS 2
All lessons in this topic
  1. 1. Install Wendy Lite on your ESP32
  2. 2. Update an ESP32 app over Wi-Fi
  3. 3. Find your ESP32 on Wendy Net
  4. 4. Use ESP32 sensors from Linux and ROS 2
  5. 5. Run your first ESP32 app
  6. 6. Read a button, sample voltage, and drive PWM
  7. 7. Connect ESP32 sensors with I²C, SPI, and UART
  8. 8. Handle ESP32 interrupts and detect stalled work
  9. 9. Build an ESP32 alarm that tolerates noisy readings

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.