feat(lcd): animate fortune results with shared GFX layers

This commit is contained in:
chenjintao
2026-10-10 11:36:54 +08:00
parent bf06618848
commit ee32b4d63f
26 changed files with 3063 additions and 11 deletions
@@ -659,6 +659,20 @@ static void handle_command_line(char *line)
handle_prepare_rotate(key_version);
} else if (strcmp(cmd, "lcd_test") == 0) {
handle_lcd_test();
} else if (strcmp(cmd, "lcd_fortune_test") == 0) {
/* 有界、仅显示测试;不调用云抽签、不写 NVS、不改变语义选择映射。 */
if (argc != 2 || argv[1][0] < '0' || argv[1][0] > '4' || argv[1][1] != '\0') {
cli_write_error("invalid_fortune_index");
return;
}
const domain_expression_request_t request = {
.id = DOMAIN_EXPRESSION_CHOUQIAN,
.trigger = DOMAIN_EXPRESSION_TRIGGER_FACTORY_LCD_TEST,
.chouqian_result_index_valid = true,
.chouqian_result_index = (size_t)(argv[1][0] - '0'),
};
if (domain_runtime_request_expression(&request) == ESP_OK) cli_write_ok();
else cli_write_error("lcd_fortune_test_failed");
} else {
cli_write_error("unknown_command");
}