lcdtest.c

来自「NXP产品LPC23XX的开发板的源文件」· C语言 代码 · 共 42 行

C
42
字号
/*****************************************************************************
 *   lcdtest.c:  main C entry file for NXP LPC23xx/24xx Family Microprocessors
 *
 *   Copyright(C) 2006, NXP Semiconductor
 *   All rights reserved.
 *
 *   History
 *   2006.07.13  ver 1.00    Prelimnary version, first Release
 *
******************************************************************************/
#include "LPC230x.H"                        /* LPC23xx/24xx definitions */
#include "type.h"
#include "irq.h"
#include "target.h"
#include "portlcd.h"

BYTE lcd_text[2][16+1] = {"   NXP SEMI.    ",      /* Buffer for LCD text      */
                          "  LPC23/24xx    " };

/*****************************************************************************
**   Main Function  main()
******************************************************************************/
int main (void)
{	
    TargetResetInit();

    /* LCD Module.2x16 init */
    LCD_init();
    LCD_cur_off();

	/* Update LCD Module display text. */
	LCD_cls();
	LCD_puts( lcd_text[0] );
	LCD_gotoxy (1,2);
	LCD_puts( lcd_text[1] );		
    return 0;
}

/******************************************************************************
**                            End Of File
******************************************************************************/

⌨️ 快捷键说明

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