Create Hello World in VSCode/ESP-IDF Extension manually, run on ESP32-C6 to send text to Serial.

With ESP-IDF Extension installed on VSCode, this video show how to create Hello World in VSCode/ESP-IDF Extension manually, run on YD-ESP32-C6-N16 to send text to Serial.


Create new ESP-IDF project:
> View > Command Palette
> ESP-IDF: New Project

Setup new project hello-C6, choose ESP-IDF Board: ESP32-C6 chip (via ESP USB Bridge)

Edit and rename main.c to main.cpp:

#include <iostream>

extern "C" void app_main(void)
{
    for (int i=0; i<=20; i++){
        std::cout << "Hello World! ";
        std::cout << i;
        std::cout << "\n";
    }

}

Build, Flash and Run:
> View > Command Palette
> ESP-IDF: Build, Flash and start a monitor on your device

Comments

Popular posts from this blog

MicroPython/ESP32-C3 + 1.8" 128x160 TFT ST7735 SPI, using boochow/MicroPython-ST7735 library.

CameraWebServe: ESP32-S3 (arduino-esp32) + OV5640 camera module