How to add preprocessor build flags in PlatformIO
In order to define a preprocessor build flag in PlatformIO, add it to build_flags in platformio.ini, prefixing it with -D:
platformio.ini
build_flags = -DQUICKSPI_DEBUG_WRITESor, in order to define it to a specific value, use
platformio.ini
build_flags = -DQUICKSPI_DEBUG_WRITES=1Check out similar posts by category:
C/C++, PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow