feat(i18n): zh-CN examples log in English, matching the serial-monitor convention
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2b73b57ee6
commit
4e99dd3a87
12 files changed
+28
-28
No files matched your search
@@ -31,13 +31,13 @@ static void button_single_click_cb(void *arg, void *data)
|
||||
/* 长按回调(> 3 秒) */
|
||||
static void button_long_press_cb(void *arg, void *data)
|
||||
{
|
||||
ESP_LOGW(TAG, "Evento: Pressionamento Longo! Acionando modo de reset de fábrica.");
|
||||
ESP_LOGW(TAG, "Event: long press! Entering factory reset mode.");
|
||||
led_indicator_start(led_handle, BLINK_BREATHE_FAST);
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
ESP_LOGI(TAG, "Iniciando ESP-IoT-Solution Component Suite");
|
||||
ESP_LOGI(TAG, "Starting ESP-IoT-Solution Component Suite");
|
||||
|
||||
// 1. LED Indicator 配置
|
||||
led_indicator_gpio_config_t led_cfg = {
|
||||
@@ -64,7 +64,7 @@ void app_main(void)
|
||||
iot_button_register_cb(btn_handle, BUTTON_SINGLE_CLICK, button_single_click_cb, NULL);
|
||||
iot_button_register_cb(btn_handle, BUTTON_LONG_PRESS_START, button_long_press_cb, NULL);
|
||||
|
||||
ESP_LOGI(TAG, "Drivers inicializados com sucesso! Pressione o botão GPIO 0.");
|
||||
ESP_LOGI(TAG, "Drivers initialized! Press the button on GPIO 0.");
|
||||
|
||||
while (1) {
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
|
||||
Reference in new issue
Block a user