I want to abstract out a couple of functional components so that I can share them across multiple projects using either ESP-32 or 8266 boards (so, I don’t want a platformio.ini file). I already have these components abstracted out in two separate, board-specific projects, but the components don’t depend on board architecture, so I want to put their code in a common lib.
I see other libs in the repo (PlatformIO Registry) that don’t have a platformio.ini file, but when I try it, I don’t get very far. The first issue is dependencies – I need Arduino.h. Again, looking at other libs, they #include “Arduiino.h”, but I don’t see where they are installing that lib.
What am I missing? Again, for clarity, I have this:
componentX and componentY are architecture-agnostic, but, having them in two places means that they can easily get out of sync. They do, however, use the arduino-style of loop() and setup(), and I need other things from Arduino.h (like String, etc).
I want to put them into a lib (LibA) that I can include in ProjA and ProjB, and each component includes “Arduinio.h”. Do I have to D/L and install Arduino.h for the new lib? I don’t see that in other projects. This one, for instance, has no platformio.in file, and it includes Arduino.h, There are others as well.
Thanks in advance!