PlatformIO
https://platformio.org/
VSCode
Basic
PlatformIO project consists of 3 main items:
lib
- put here project specific (private) librariessrc
- put your source files in this folderplatformio.ini
- project configuration file
PlatformIO Project Configuration File:
Generic options
- development platforms, boards, frameworksBuild options
- build flags, source filter, extra scriptingUpload options
- custom port, speed and extra flagsLibrary options
- dependencies, extra library storages
Ctrl+Alt+S
open monitor
monitor_speed = 115200
in platformio.ini
Linux USB permission
sudo chmod 666 /dev/ttyUSBx // grant permission temporarily
sudo usermod -a -G dialout $USER
sudo usermod -a -G plugdev $USER // grant permission permanently
// need restart your system
Unable to init
Network error
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config list
python globle source
报错显示库文件缺失
lib_ldf_mode=deep+