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

📄 lcd_test.c

📁 这个事在51上面实现lcd串行驱动
💻 C
字号:
/*
*****************************************************************************************
*                                          电赛
*                                     
*                                      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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -