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
Post a Comment