Intro
Adapting PlatformIO to Arduino Project Structure 1. See PlatformIO (VS Code) for IDE integration
Setup
-
Move sketch folder/s to
src- Note: the

- Note: the
-
To make compatible with PlatformIO:
- include
#include <Arduino.h>in eachinofile - include function declarations above the
setup()function (ex:void forward();) - Include the file in
main.cpp, example:
- include
#include <Arduino.h>
#include "arduino_blink_test/arduino_blink_test.ino"Add a library
-
Open PIO home, click libraries, search for library, and click Add to Project

-
Or, in
platformio.ini, add the library to thelib_depsfield
[env:uno]
libdeps = IRremote
platform = atmelavr
board = uno
framework = arduino




