currently working on an Arduino project with a gateway and a node where I had to put some shared code into shared h/cpp files (a library).
How am I supposed to develop this library in PlatformIO? If I create a new Arduino project, firstly it asks me about the board (this library is supposed to work on multiple MCUs like atmega328p and ESP8266) and also it creates a main.cpp with the setup and loop thingy.
If I just add the folder with the shared h and cpp files to the workspace, Visual Studio Code tells me to mess with the include paths and that it is unable to include Arduino.h and stuff.
Thanks for advice.