lcd_test.c

来自「这个事在51上面实现lcd串行驱动」· C语言 代码 · 共 38 行

C
38
字号
/*
*****************************************************************************************
*                                          电赛
*                                     
*                                      12864液晶测试
*
*                               (c) Copyright 2007, yyw, hbut
*                                     All Rights Reserved
*
*                                            V1.00
*
* File : lcd_test.c
* By   : 
*****************************************************************************************
*/

#include "common.h"
#include "../Driver/LCD12864/lcd12864.h"

void main()
{
	SerialInit();
	SerialBufferInit();
	LCDInit();
	
	SerialPrintStr("init over \n");
	
	while(1)
	{
		LCDPrintf(0,0,0, "\n湖北工业大学 \n   ");
		SerialPrintStr("print one \n");
		x1s(10);
		LCDPrintf(0,0,0,"湖北工业大学(hbut),是一所以工科为主文、理、经、管、法....");
		SerialPrintStr("print two \n");
		x1s(10);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?