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

480x320 TFT/ILI9488 SPI wih EP32C3 (arduino-esp32) using Arduino_GFX Library

my dev.tools - FNIRSI 2C23T 3-in-1 Dual Channel Oscilloscope/Multimeter/Signal Generator