Skip to main content
Wokwi for Visual Studio Code provides a simulation solution for embedded and IoT system engineers. The extension integrates with your existing development environment, allowing you to simulate your projects directly from your code editor. You can use Wokwi for VS Code with Zephyr Project, PlatformIO, ESP-IDF, Pi Pico SDK, NuttX, Rust, Arduino CLI, MicroPython, and other embedded development frameworks and toolchains.
Wokwi for VS Code running an ESP-IDF project

Installation

1

Install the Extension

Install the Wokwi for VS Code extension from the Visual Studio Code Marketplace.
2

Request a License

Press F1 and select “Wokwi: Request a new License”. VS Code will ask you to confirm opening the Wokwi website in your browser. Confirm by clicking “Open”.
3

Get Your License

Click on the button that says “GET YOUR LICENSE”. You may be asked to sign in to your Wokwi account. If you don’t have an account, you can create one for free.
4

Activate the License

The browser will ask for confirmation to send the license to VS Code. Confirm (you may have to confirm twice, once in the browser, and once in VS Code). You’ll see a message in VS Code that says “License activated for [your name]”. Congratulations!

Example Projects

To configure Wokwi for your own project, see the Project Configuration page. If you just want to get started quickly and play around with Wokwi for VS Code, here are some example projects, preconfigured with diagram.json and wokwi.toml files.
Before simulating any of the following projects, you need to compile the code and generate the firmware / ELF file. Consult the project’s README file for instructions on how to compile the code.

PlatformIO Examples

Arduino Simon Game

Memory game with 4 LEDs, 4 buttons, a buzzer, and a 7-segment display

ESP32 Network Clock

Syncs time from the internet (NTP) and displays it on an LCD display

ESP32 Web Server

HTTP server that controls 2 LEDs

ESP32 Async Web Server

HTTP server that controls 2 LEDs, using the ESPAsyncWebServer library

ESP-IDF Examples

WiFi + FreeRTOS Tasks

Example project demonstrating WiFi connectivity with FreeRTOS

SSD1306 OLED with LVGL Graphics

Graphics demo using SSD1306 OLED display and LVGL library

STM32 Examples

STM32 Nucleo64 C031C6

STM32 Nucleo64 C031C6 with STM32 HAL

CMSIS on STM32C031C6

CMSIS example for STM32C031C6

FreeRTOS on STM32C0

FreeRTOS running on STM32C0 microcontroller

ESP32 + Rust

Hello Display

Using ESP32-C3 and ILI9341 Display

esp-gallery

Interactive art gallery (ESP32-C3)

ESP32-S2 Keypad Example

Keypad input example for ESP32-S2

Scrolling Text

Using LED Dot Matrix Display

Etch-A-Sketch

Draw on an LED Dot Matrix using an analog joystick

MicroPython

Check out the MicroPython on Wokwi for VS Code repo for examples and instructions. See also the MicroPython in VS Code page for more details.

Other Examples

Arduino LCD-1602 Hello World

Using Arduino Extension

Custom Chips Example

A custom chip that inverts the input signal

Raspberry Pi Pico SDK

Blinky for Raspberry Pi Pico

Sming Framework

Using Wokwi with the Sming Framework

Build docs developers (and LLMs) love