📄 lcd.c
字号:
#include "DSP28_Device.h"
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;
}
//========================================================
//功能:清屏
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -