如何在 PlatformIO 中添加预处理器构建标志
为了在 PlatformIO 中定义预处理器构建标志,将其添加到 platformio.ini 中的 build_flags,前缀为 -D:
platformio.ini
build_flags = -DQUICKSPI_DEBUG_WRITES或者,为了将其定义为特定值,使用
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