📄 lcd_test.c
字号:
/*
***********************************************************************
Embest Info&Tech Co., Ltd. All rights reserved.
www.embedinfo.com
***********************************************************************
---------------- file information -------------------------------------
file name: uart0_test.c
version : v0
author : z.x.q. Embest
begin : 2006-04-10
finish : 2006-04-10
define : uart0_test file
notes :
---------------- modify information -----------------------------------
version :
modify :
begin :
finish :
define :
-----------------------------------------------------------------------
*/
/*-------------------------------------------------------------------*/
/* include files */
/*---------------------------------------------------------------- --*/
#include "..\..\com\lpc_lib_LCD\lpc_lib_LCD.h"
/*-------------------------------------------------------------------*/
/* local function declare */
/*-------------------------------------------------------------------*/
/*
void xxx(xxx xxx, xxx xxx);
*/
/*-------------------------------------------------------------------*/
/* function code */
/*-------------------------------------------------------------------*/
INT32U Main(void)
{
lpc_init_pll_manual();
VICIntEnClr = 0xffffffff; //off all interrupt
VICVectAddr = 0;
VICIntSelect = 0;
//initialize module,off all modules,it is necessary for stability of system
spi_data_send(0, 0xfb);
spi_data_send(0, 0x56);
spi_data_send(0, 0xfb);
spi_data_send(0, 0x56);
//initialize LCD,and set some parameter
LCD_reset();
LCD_init();
LCD_BL_con(0);
color_set(0x0,0x07ff); //color setup
posi_set(0,0); //set display position
LCD_printf("welcome,:)\n");
LCD_printf("nothing impossible!\n");
LCD_printf("we all are hero!\n\n");
while(1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -