快排仪表以及A270S版本生成

This commit is contained in:
2025-02-11 18:48:14 +08:00
parent f0fb64e4e6
commit 08e216ffb2
63 changed files with 29766 additions and 29566 deletions

View File

@ -201,6 +201,39 @@ static void tp_init(widget_t *win) {
}*/
select_tab = widget_lookup(win, "cp_tab", TRUE);
#else
// 关闭对应按钮
widget_t *dis_tab = widget_lookup(win, "aa_tab", TRUE);
widget_t *cp_tab = widget_lookup(win, "cp_tab", TRUE);
widget_t *ec_tab = widget_lookup(win, "ec_tab", TRUE);
widget_set_visible(dis_tab, FALSE);
widget_set_visible(cp_tab, FALSE);
widget_set_visible(ec_tab, TRUE);
widget_set_visible(carplay_view, FALSE);
widget_set_visible(android_view, FALSE);
widget_set_visible(p2p_view, TRUE);
widget_t *bt_name = widget_lookup(win, "bt_name", TRUE);
printf("strQrText=%s.\r\n",strQrText);
widget_t *qr1 = qr_create(qr_view, 40, 81, 200, 200);
// printf("qr1 >>option>> %d.\r\n",widget_index_of(qr1));
qr_set_value(qr1, strQrText);
// getLastNChars(strQrText, 22, tmpStr);
getTextAfterLastEqual(strQrText, tmpStr);
widget_set_text_utf8(bt_name, tmpStr);
widget_t *uuid = widget_lookup(win, "uuid", TRUE);
tk_snprintf(tmpStr, sizeof(tmpStr), "uuid:%s", UI_uuid);
// printf("UI_uuid > %s .\r\n",UI_uuid);
widget_set_text_utf8(uuid, tmpStr);
// printf("tmpStr>%s.\r\n",tmpStr);
ap_get_ssid(strQrText, tmpStr);
printf("wifi_name>%s.\r\n",tmpStr);
ap_get_pwd(strQrText, tmpStr);
printf("wifi_pwd>%s.\r\n",tmpStr);
qr_flag = 1;
select_tab = widget_lookup(win, "ec_tab", TRUE);
#endif
@ -563,6 +596,11 @@ static ret_t on_new_key_down(void *ctx, event_t *e) {
#if (MOTO_WARE_HOSE == MOTO_ICMX_A591F)
return_demo();
#else
#ifdef UI_VIEW_QUICKLY_ARRANGE
return_demo();
#else
if(Get_sys_wifi_state())//连接上不允许切换
return RET_OK;
widget_t *qr_view = widget_lookup(win, "qr_view", TRUE);
@ -659,6 +697,8 @@ static ret_t on_new_key_down(void *ctx, event_t *e) {
break;
}
#endif
#endif
} else if (evt->key == TK_KEY_q) { // 灯光开关
return_demo();
}