⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gui_initialisation.c

📁 Very very small GUI. Usefull for small system, without OS or small OS. Event driven, support user m
💻 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 + -