- app/main/Kconfig.projbuild 中定义 TEXT_TO_PRINT
menu "Example Configuration"
config TEXT_TO_PRINT
string "config text"
default "hello world"
help
The text to show.
endmenu
- app/main/main.c 中使用 CONFIG_TEXT_TO_PRINT
#include <stdio.h>
#include "sdkconfig.h"
#define TEXT_SHOW CONFIG_TEXT_TO_PRINT
void app_main(