📄 gui_initialisation.c
字号:
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <membox.h>
#include "GlobalVars.h"
#include "GUI.h"
#include "pwin.h"
extern unsigned char xhuge _HeapGUI[GUI_HEAP_SIZE];
void SendToHost(char * str, INT16U t);
Pw_Int mainInit (void);
Pw_Bool Pw_Init(Pw_Display* dpy) {
dpy = dpy;
return _init_boxh (_HeapGUI, sizeof (_HeapGUI), sizeof(Pw_Window));
}
void GUI_X_Log(const char *sd) {
sprintf(s, "\2%s\t%s\3\0", cDEBUG_MSG, sd);
SendToHost (s, 0);
}
/*
void GUI_X_Warn(const char *sd) {
sprintf(s, "\2%s\t%s\3\0", cDEBUG_MSG, sd);
SendToHost (s, 0);
}
void GUI_X_ErrorOut(const char *sd) {
sprintf(s, "\2%s\t%s\3\0", cDEBUG_MSG, sd);
SendToHost (s, 0);
}
*/
void GUI_Init(void) {
LCD_FirstInit();
mainInit();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -