Xinyuan-LilyGO / T-QT

MIT License
94 stars 31 forks source link

Serial Monitor #9

Closed kirk5275 closed 1 year ago

kirk5275 commented 1 year ago

How do I get the serial monitor to work with PlatformIO?

Using this simple program:

void setup() { Serial.begin(9600); }

void loop() { Serial.printf("Hello World"); delay(3000); }

I get this: --- Terminal on COM13 | 9600 8-N-1 --- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time --- More details at https://bit.ly/pio-monitor-filters --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H waiting for download

Works okay with ESPRESSIF ESP-S3-DevKitC-1 board.

kirk5275 commented 1 year ago

Found the answer

build_flags = -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1