I’m having two (possibly related) problems accessing the OctoWS2811 library by Paul Stoffregen/PJRC. The first problem has apparently existed for some time: When the latest version is specified with
lib_deps = paulstoffregen/OctoWS2811 @ ^1.4
an older version is actually loaded. The workaround (which I learned from someone else) is to find the correct-version .h and .cpp files on GitHub and overwrite the ones in .pio/libdeps/teensy40/OctoWS2811. This method has worked fine, but it seems like it should really be fixed.
Unfortunately, that method has stopped working on my current project. The difference is that I’ve now created some private libraries, which I’m referencing with
lib_extra_dirs = /Users/keith/Documents/PlatformIO/Projects/EFD_libraries
When that line is added, I get the following compile messages:
Dependency Graph
|-- <OctoWS2811> 1.4.0
|-- <PixelDriver>
Building in release mode
Archiving .pio/build/teensy40/lib803/libOctoWS2811.a
Compiling .pio/build/teensy40/lib5e3/PixelDriver/PixelDriver.cpp.o
Indexing .pio/build/teensy40/lib803/libOctoWS2811.a
Compiling .pio/build/teensy40/FrameworkArduino/CrashReport.cpp.o
Compiling .pio/build/teensy40/FrameworkArduino/DMAChannel.cpp.o
Compiling .pio/build/teensy40/FrameworkArduino/EventResponder.cpp.o
Compiling .pio/build/teensy40/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/teensy40/FrameworkArduino/HardwareSerial1.cpp.o
src/PixelDriver.cpp:2:24: fatal error: OctoWS2811.h: No such file or directory
When I remove the lib_extra_deps command, it compiles fine (as long as I don’t reference the private libraries). Alternatively, I can delete the OctoWS2811 library reference and access the private libraries fine. I just can’t do both.
Can anyone shed some light on this? I’ve tried lots of things but am out of ideas. I also posted this to the PJRC forum yesterday but have no responses yet.
Thanks!