I wrote a library that I intend to use in several project and I published it via platform.io's library management system.
https://platformio.org/lib/show/12820/FastLED-SectionManager
This is the first time I've published via platform.io (first time I've published any c++ library). I read over platform.io's docs on creating a library and structured my library accordingly with my headers in the include
directory and the implementation files in the src
directory:
And created the following library.json file:
{
"name": "FastLED-SectionManager",
"version": "1.0.2",
"description": "A led strip index manager that allows for logical groupings of strip sections.",
"repository": {
"type": "git",
"url": "[email protected]:chris-schmitz/FastLED-Section-Manager.git"
},
"authors": [
{
"name": "Christopher Schmitz",
"email": "[email protected]",
"url": "https://light-inspiration.com/"
}
],
"homepage": "https://github.com/chris-schmitz/FastLED-Section-Manager",
"license": "MIT",
"dependencies": {
"fastled/FastLED": "^3.4.0"
},
"frameworks": "*",
"platforms": "*"
}
The problem that I'm running into is that when I install the library in a different project via platform.io and try to include a header, the header can't be found:
I double checked in the pio
directory for the project and I can definitely see the header and implementation files:
So I'm not sure why platform.io can't find the headers.
I can't quite tell what I'm doing wrong. any ideas?
want to flip the direction on every other row with the third boolean argument
....sectionManager.addRangeToSection(0, 0, 3, true);
.... the boolean is 4th argument