📄 lcd_base.h
字号:
#ifndef _LCD_BASE_H
#define _LCD_BASE_H
//Display HZ with different HZK:16x16 dots,24x24 dots
int openhzk(char *s);
int getbit(unsigned char c,int n);
int readkey();
char translatekey(char c);
int puthz16(int x,int y,int z,int color,char *p,char d,int angle);
int puthz16_en(int x,int y,int z,int color,char *p,char d,int angle);
int puthz24_en(int x,int y,int z,int color,char *p,char d,int angle);
void closehzk();
//Declare Menu Operation Functions
void getitemcount(char * *,int *,int *,int *);
void LoadMainMenu(void);
void LoadSubMenu(char * * name,int ord);
int ManageSubMenu(void);
void ManageMainMenu(void);
//Define a Menu Type Struct
#define INUM 10
typedef struct _menu{
int coor[4]; //the menu's area
int itemcoord[4*INUM]; //Max 10 item,each with x1,y1,x2,y2
int itemdispxy[2*INUM]; //Actually display item name's X coor
char select; //Selected item's ord
char itemnum; //The number of items in this menu
char * * itemname; //Item's name (point to static data
int COMMAND_ID[INUM]; //Key number
} MENUTYPE;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -