Skip to content

Instantly share code, notes, and snippets.

@tranchausky
Last active July 11, 2025 09:26
Show Gist options
  • Save tranchausky/a162afe399dc58ab854aca754eca2faf to your computer and use it in GitHub Desktop.
Save tranchausky/a162afe399dc58ab854aca754eca2faf to your computer and use it in GitHub Desktop.
esp32-c3 (supporer mini) show monotor Serial (hold boot + power first for upload code)
[env:esp32c3]
platform = espressif32
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
build_flags =
-DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_MODE=1
#include <Arduino.h>
void setup() {
Serial.begin(115200);
delay(1000);
Serial.println("Xin chào từ ESP32-C3!");
}
void loop() {
Serial.println("In ra mỗi 2 giây");
delay(2000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment