hain-atmelavr @ ~1.70300.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-atmelavr@1.70300.191015 has been installed!
Tool Manager: Installing platformio/framework-arduino-avr @ ~5.1.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: framework-arduino-avr@5.1.0 has been installed!
Resolving nodemcuv2 dependencies...
Platform Manager: Installing espressif8266
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: espressif8266@4.2.1 has been installed!
Tool Manager: Installing platformio/toolchain-xtensa @ ~2.100300.220621
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-xtensa@2.100300.220621 has been installed!
Tool Manager: Installing platformio/framework-arduinoespressif8266 @ ~3.30102.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: framework-arduinoespressif8266@3.30102.0 has been installed!
Tool Manager: Installing platformio/tool-esptool @ <2
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: tool-esptool@1.413.0 has been installed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.30000.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: tool-esptoolpy@1.30000.201119 has been installed!
Resolving teensy31 dependencies...
Platform Manager: Installing teensy
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: teensy@4.18.0 has been installed!
Tool Manager: Installing platformio/toolchain-gccarmnoneeabi-teensy @ ~1.110301.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-gccarmnoneeabi-teensy@1.110301.0 has been installed!
Tool Manager: Installing platformio/framework-arduinoteensy @ ~1.158.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: framework-arduinoteensy@1.158.0 has been installed!
Project has been successfully initialized!
$ ls -R
.:
include lib platformio.ini src test
./include:
README
./lib:
README
./src:
./test:
README
恭喜!您刚刚创建了第一个基于PlatformIO的项目,其结构如下:
- "platformio.ini"(项目配置文件)
- src 目录,用于放置源代码(.h、.c、.cpp、.S、*.ino 等)。
- lib 目录可用于存放项目专用(私有)库。更多详情请参见 lib/README 文件。
- 支持 VCS 和持续集成的其他文件。
如果需要在现有项目中添加新电路板,请再次使用pio project init。
刚刚生成的 latformio.ini的结果:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:uno]
platform = atmelavr
board = uno