Introduction - If you have any usage issues, please Google them yourself
# Include <reg51.h> /*-------------------------------------------- call way: on their own I/O port function definition @ 2001/05/12 Description: private function, the interface definition--------------------------------------------*/ sbit HD7279_CS = P1 ^ 4// HD7279_CS- P1.4sbit HD7279_CLK = P1 ^ 5// HD7279_CLK- P1. 5sbit HD7279_DATA = P1 ^ 6// HD7279_DATA- P1.2sbit HD7279_KEY = P1 ^ 7// HD7279_KEY- P1.3 /*-------------------------------------------- way call: HD7279A the command function definition @ 2001/05/12 Description: private function, interface definitions--------------------------------------------*/# define HD7279_RESET 0xa4// reset# define HD7279_TEST 0xbf// test# define HD7279_RLC 0xa3// circle left# define HD7279_RRC 0xa2// cycle shifted to right# define HD7279_RL 0xa1// left# define HD7279_RR 0xa0// Move right# define HD7279_DECODE0 0x80// decoding means 0# define HD7279_DECODE1 0xc8// decoding mode 1