初始化demo版本
This commit is contained in:
20
examples/hmi/inc/hmi_common.h
Normal file
20
examples/hmi/inc/hmi_common.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef HMI_COMMON_H
|
||||
#define HMI_COMMON_H
|
||||
|
||||
#include "menu.h"
|
||||
|
||||
/* 自定义图标数据 */
|
||||
typedef struct
|
||||
{
|
||||
const char *pImageFrame;
|
||||
const char *pImage;
|
||||
} MenuImage_t;
|
||||
|
||||
// 清除屏幕
|
||||
#define CLEAR() printf("\033[2J")
|
||||
// 定位光标
|
||||
#define MOVETO(x,y) printf("\033[%d;%dH", (x), (y))
|
||||
|
||||
void Hmi_OnCommonFunction(const MenuItemInfo_t *pItemInfo);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user