Hi,
I’m pretty new to hardware and just started learning espressif and platformIO. I believe I have setup VSCode and platformIO extension, then built and uploaded esp8266-rtos-sdk-blink with tiny modification of main.c:
void task_blink(void *ignore)
{
gpio16_output_conf();
while (true)
{
gpio16_output_set(0);
printf("0"); // modification
vTaskDelay(1000 / portTICK_RATE_MS);
gpio16_output_set(1);
printf("1"); // modification
vTaskDelay(1000 / portTICK_RATE_MS);
}
vTaskDelete(NULL);
}
The NodeMCU led blinked as expected but serial monitor output garbled characters like this:
* Executing task: platformio device monitor
--- Terminal on /dev/cu.usbserial-0001 | 9600 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp8266_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
)�␀�=�␀tc�0␀� x␐␇��?b`␙�␗������������������������������������������������������������
Any ideas? Thank you!