这个环境跟插件我也是刚刚接触到,这里记录下一些使用技巧,用CSND博文的方式,分享给大家;
VScode-PlatformIo插件是带串口接收终端的。就是下方图文中这个插头的图标。
这个串口终端默认的波特率是9600,这个有时候还是适合的得修改,
--- Miniterm on COM7 9600,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
--- pySerial (3.4) - miniterm - help
--- Ctrl+C Exit program
--- Ctrl+T Menu escape key, followed by:
--- Menu keys:
--- Ctrl+T Send the menu character itself to remote
--- Ctrl+C Send the exit character itself to remote
--- Ctrl+I Show info
--- Ctrl+U Upload file (prompt will be shown)
--- Ctrl+A encoding
--- Ctrl+F edit filters
--- Toggles:
--- Ctrl+R RTS Ctrl+D DTR Ctrl+B BREAK
--- Ctrl+E echo Ctrl+L EOL
--- Port settings (Ctrl+T followed by the following):
--- p change port
--- 7 8 set data bits
--- N E O S M change parity (None, Even, Odd, Space, Mark)
--- 1 2 3 set stop bits (1, 2, 1.5)
--- b change baud rate
--- x X disable/enable software flow control
--- r R disable/enable hardware flow control
按 Ctrl + T 进入菜单查看 操作
根据提示先 Ctrl + T 紧接着 按 B 即可;
比如上面,设置完了会提示当前得串口设置情况。