精品国产人成在线_亚洲高清无码在线观看_国产在线视频国产永久2021_国产AV综合第一页一个的一区免费影院黑人_最近中文字幕MV高清在线视频

您好,歡迎來電子發(fā)燒友網(wǎng)! ,新用戶?[免費(fèi)注冊(cè)]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>C/C++語言編程>

104鍵PS2接口標(biāo)準(zhǔn)鍵盤經(jīng)典樣例程序

大小:0.1 MB 人氣: 2017-09-05 需要積分:0
#include
#include "scancodes.h"
#define LCM_RW? P2_1 //定義LCD引腳
#define LCM_RS? P2_0
#define LCM_E?? P2_2
#define LCM_Data? P0
#define Key_Data P3_4 //定義Keyboard引腳
#define Key_CLK? P3_3
#define Busy??? 0x80 //用于檢測(cè)LCM狀態(tài)字中的Busy標(biāo)識(shí)
void LCMInit(void);
void DisplayOneChar(unsigned char X, unsigned char Y, unsigned char DData);
void DisplayListChar(unsigned char X, unsigned char Y, unsigned char code *DData);
void Delay5Ms(void);
void Delay400Ms(void);
void Decode(unsigned char ScanCode);
void WriteDataLCM(unsigned char WDLCM);
void WriteCommandLCM(unsigned char WCLCM,BuysC);
unsigned char ReadDataLCM(void);
unsigned char ReadStatusLCM(void);
unsigned char code cdle_net[] = {"?? unsigned char code email[] = {"pp51com@163.com"};
unsigned char code Cls[] = {"??????????????? "};
static unsigned char IntNum = 0; //中斷次數(shù)計(jì)數(shù)
static unsigned char KeyV; //鍵值
static unsigned char DisNum = 0; //顯示用指針
static unsigned char Key_UP=0, Shift = 0;//Key_UP是鍵松開標(biāo)識(shí),Shift是Shift鍵按下標(biāo)識(shí)
static unsigned char BF = 0; //標(biāo)識(shí)是否有字符被收到

非常好我支持^.^

(0) 0%

不好我反對(duì)

(1) 100%

      發(fā)表評(píng)論

      用戶評(píng)論
      評(píng)價(jià):好評(píng)中評(píng)差評(píng)

      發(fā)表評(píng)論,獲取積分! 請(qǐng)遵守相關(guān)規(guī)定!

      ?