Hello,
I’m using platformio on wsl / vs code. I formerly used Arduino IDE.
”Build” and “upload” work fine with pio. But I don’t succeed to monitor what I display using Serial.print.
Here’s an extract of my platform.ini:
build_flags =
-D ARDUINO_USB_CDC_ON_BOOT=1
-D ARDUINO_USB_MODE=1
monitor_speed = 115200
and my main.cpp:
void setup() {
Serial.begin(115200);
delay(500);
led.begin();
led.setBrightness(50);
led.clear();
led.show();
}
void loop() {
led.setPixelColor(0, led.Color(0, 0, 255));
led.show();
delay(500);
led.clear();
led.show();
delay(500);
Serial.print("It blinks!\n");
}
When I hit “Upload and monitor” (and then click on the reset button of the board), I get:
Hard resetting via RTS pin…
— Terminal on /dev/ttyACM0 | 115200 8-N-1
— Available filters and text transformations: debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
— More details at Redirecting...
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
I expected to find the “It blinks” text looping in the terminal of vs code?
Thanks for the help
