It is unusual to place header files in the .pio/build folder, as this is an output folder for the compiled binary files.
However, you can add that directory by using the -I flag:
build_flags =
-I.pio/build/www/include
Please note: Any change to the project (or the platformio.ini file) will result in the contents of the directory being (partially) deleted. This should be no problem since your script runs automatically during the build process.
yes, i know… the script takes a bunch of files from my src folders and creates that “webpage.h”
in the script, how do i append to existing build_flags?
but new problem with this method the path added by the build_flags -I
does not get into the c_cpp_properties.json file
and the editor cant find it and flags it as errors