?? lcd_def.h
字號(hào):
////////////////////////////////////////////////////////////////////////////////////////////
//defination file
//TYPE: *.h
////////////////////////////////////////////////////////////////////////////////////////////
#define uint unsigned int
#define uchar unsigned char
#define ulong unsigned long
#define LCD_LOW_BUS P1
/////////////////////////////////////////////////////////////////////////////////////////////
// bit redefination
sbit LCDCS = P3^4;
sbit LCDRD = P3^3;
sbit LCDWR = P3^2;
sbit LCDRS = P3^1;
sbit RST = P3^0;
/////////////////////////////////////////////////////////////////////////////////////////////
//function claimation
void Sent_Lcd_Cmd(uchar);
void Sent_Lcd_Data(uchar);
void delay(uint);
void LCD_Initial_8020(void);
void def_window(uchar,uchar,uchar,uchar) reentrant;
void LCD_Clear_Window(uchar,uchar,uchar,uchar,uint) reentrant;
void LCD_colorfill(uchar,uchar,uchar,uchar,uchar *) reentrant;
void LCD_Photo(uchar,uchar,uchar,uchar, uint *) reentrant;
void dis_interrupt(void);
void interrupt_ini(void);
void reset_flash(void);
struct flash_prog cmd_cvt(uchar);
void pg_wr_161(void);
void pg_rd_161(void);
/////////////////////////////////////////////////////////////////////////////////////////////
//define some constant data
#define contrast 0x95
#define nline 0x8e
#define Rowvector 0x0e
#define Addressing 0x19
////////////////////////////////////////////////////////////////////////////////////////////
//AT45DB161 PIN defination
sbit BUSY = P0^6;
sbit RESET = P0^7;
sbit NSS = P0^4;
//sbit SCK = P0^0;
//sbit SPI = P0^2;
//sbit SP0 = P0^1;
#define flash_rd 0x52
#define flash_pg_wr_buf1 0x82
#define flash_pg_wr_buf2 0x85
#define STA 0x57
#define mem_tobuf1 0x53
#define mem_tobuf2 0x55
#define buf1_rd 0x54
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -