添加对hmi屏幕的支持,赋码仪按键按下时发送赋码请求

This commit is contained in:
ranchuan
2024-01-29 18:05:23 +08:00
parent 2a4e7f1f1e
commit 2fb109f2ac
17 changed files with 338 additions and 23 deletions

View File

@@ -37,6 +37,32 @@
*/
#define coder_led_yellow(){\
prot_m4 *m4=protM4();\
m4->send_data_slot("ledg on");\
m4->send_data_slot("ledr on");\
}
#define coder_led_green(){\
prot_m4 *m4=protM4();\
m4->send_data_slot("ledg on");\
m4->send_data_slot("ledr off");\
}
#define coder_led_red(){\
prot_m4 *m4=protM4();\
m4->send_data_slot("ledg off");\
m4->send_data_slot("ledr on");\
}
#define coder_led_off(){\
prot_m4 *m4=protM4();\
m4->send_data_slot("ledg off");\
m4->send_data_slot("ledr off");\
}
typedef struct{
const char *name;
int task_id;