?? display_led.h
字號:
/*
********************************************************************************************************************
*描述: DP-51中LED顯示程序頭文件
*文件名: DISPLAY_LED.H
*應用語言: KEIL C51
*應用系統: RTX51 FULL 5.10
*版本 : V1.0
*作者: 劉養海
*廣州周立功單片機發展有限公司 保留所有的版權
********************************************************************************************************************
*/
#ifndef _DISPLAY_LED_H
#define _DISPLAY_LED_H
/*
********************************************************************************************************************
*引用限制說明
********************************************************************************************************************
*/
#ifndef _GLOBAL_DISPLAY_LED_
#define GLOBAL_DISPLAY_LED extern
#else
#define GLOBAL_DISPLAY_LED
#endif
/*
********************************************************************************************************************
*DISPLAY_LED中常量定義
********************************************************************************************************************
*/
#ifndef _GLOBAL_DISPLAY_LED_
GLOBAL_DISPLAY_LED code LedSegCode[];
#else
GLOBAL_DISPLAY_LED code LedSegCode[]={ 0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8, //0X00--0X07
0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e, //0X08--0X0f
0xc8,0x8c,0xbf //n, p, -
};
#endif
/*
********************************************************************************************************************
*DISPLAY_LED中應用數據結構說明
********************************************************************************************************************
*/
typedef struct _display_led_struct{
unsigned char LedGlintAtbBit0 :1; //位0閃爍屬性
unsigned char LedGlintAtbBit1 :1; //位1閃爍屬性
unsigned char LedGlintAtbBit2 :1; //位2閃爍屬性
unsigned char LedGlintAtbBit3 :1; //位3閃爍屬性
unsigned char LedGlintAtbBit4 :1; //位4閃爍屬性
unsigned char LedImmergeAtbBit0 :1; //位0消隱屬性
unsigned char LedImmergeAtbBit1 :1; //位1消隱屬性
unsigned char LedImmergeAtbBit2 :1; //位2消隱屬性
unsigned char LedImmergeAtbBit3 :1; //位3消隱屬性
unsigned char LedImmergeAtbBit4 :1; //位4消隱屬性
unsigned char DisplayBuf[5]; //顯示緩沖區
unsigned char DisplayPoint; //顯示指針
}structDisplayLed,*P_structDisplayLed;
GLOBAL_DISPLAY_LED structDisplayLed idata structDisplayLedApp;
GLOBAL_DISPLAY_LED P_structDisplayLed idata P_structDisplayLedApp;
/*
********************************************************************************************************************
*DISPLAY_LED中應用函數說明
********************************************************************************************************************
*/
/*
********************************************************************************************************************
函數原型: void Show_LED(void)
參數說明: 無
返回值: 無
說明: 該函數用于LED顯示處理
********************************************************************************************************************
*/
GLOBAL_DISPLAY_LED void Show_LED(void);
/*
********************************************************************************************************************
*display_led定義結束
********************************************************************************************************************
*/
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -