?? 7279.h
字號:
//*** 函數(shù)定義 ***
void long_delay(void); // 長延時
void short_delay(void); // 短暫延時
void write7279(unsigned char, unsigned char); // 寫入到HD7279
unsigned char read7279(unsigned char); // 從HD7279讀出
void send_byte(unsigned char); // 發(fā)送一個字節(jié)
unsigned char receive_byte(void); // 接收一個字節(jié)
//void delay_1us (void); // 微秒延時
//void delay_nus (unsigned int n);
//void delay_1ms (void); // 毫秒延時
//void delay_nms (unsigned int n);
#define osccal 0x9f;
//****** HD7279A 指令 ******
#define CMD_RESET 0xa4
#define CMD_TEST 0xbf
#define DECODE0 0x80
#define DECODE1 0xc8
#define CMD_READ 0x15
#define UNDECODE 0x90
#define RTL_CYCLE 0xa3
#define RTR_CYCLE 0xa2
#define RTL_UNCYL 0xa1
#define RTR_UNCYL 0xa0
#define ACTCTL 0x98
#define SEGON 0xe0
#define SEGOFF 0xc0
#define BLINKCTL 0x88
//****** 位定義 ******
#define PORTB0 0
#define PORTB1 1
#define PORTB2 2
#define PORTB3 3
#define PORTB4 4
#define PORTB5 5
#define PORTB6 6
#define PORTB7 7
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -