Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
ReadME.txt
VirtLCD
在Windows窗口上虚拟出一个LCD屏幕,可通过DLL获取帧缓存地址,以便直接写入;
同时DLL与EXE建立UDP通道,传送按键和鼠标消息;

virtlcd提供的API函数如下:

启动VirtLCD
IMPORT BOOL  VirtLCD_Init(char* filename, int width, int height, int bpp);

关闭VirtLCD
IMPORT void  VirtLCD_Exit(void);

设置按键消息回调函数
IMPORT void  VirtLCD_SetKeybdProc(KEYBDPROC func);

设置鼠标消息回调函数
IMPORT void  VirtLCD_SetMouseProc(MOUSEPROC func);

获取LCD帧缓存
IMPORT void *VirtLCD_GetFrameBuffer(void);


测试方法:
1.新建一个Win32控制台程序的工程,假设命名为:hello
2.复制virtlcd.lib和virtlcd.h到工程源码目录
3.在main()函数里面添加初始化LCD和写LCD的代码,可参考release\template.c
4.编译生成hello.exe
5.把virtlcd.dll和virtlcd.exe放到hello.exe相同的目录,即可运行

Comments ( 2 )

Sign in for post a comment

About

虚拟LCD,可用于GUI移植,如ucGUI,emWin,MiniGUI等. spread retract
C++
Cancel

Releases (1)

All

Contributors

All

Activities

load more
can not load any more