?? lcd.c
字號:
#include "DSP2833x_Device.h" // DSP2833x Headerfile Include File
#include "DSP2833x_Examples.h" // DSP2833x Examples Include File
extern const Uint16 WordLib16x24[];
extern const Uint16 WordLib24x24[];
extern const Uint16 WordLib16x16[];
extern const Uint16 WordLib8x16[];
extern const Uint16 WordLib64[];
extern const Uint16 *WhiteList[];
extern const Uint16 *WordList1[];
extern const Uint16 *WordList2[];
extern const Uint16 *IconList[];
Uint16 SYSTAB[]={0x30,0x87,0x07,0x27,0x2B,0xEF,0x29,0x00};
Uint16 SCRTAB[]={0x00,0x00,0xf0,0x00,0x2A,0xf0,0x00,0x54,0x00,0x00};
//========================================================
//功能:LCD 初始化
//========================================================
void LcdInit(Uint16 *p1,Uint16 *p2)
{
Uint16 i;
LCD_COM = 0x40;
for(i=0;i<8;i++)
LCD_DAT = *p1++;
LCD_COM = 0x44;
for(i=0;i<10;i++)
LCD_DAT = *p2++;
LCD_COM = 0x5A;
LCD_DAT = 0x00;
LCD_COM = 0x5B;
LCD_DAT = 0x1C;
LCD_COM = 0x59;
LCD_DAT = 0x54;
}
//========================================================
//功能:清屏
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -