16X16点阵C语言程序(国外英文资料)
16X16点阵C语言程序(国外英文资料)
/ * -- -16 * 16
# include < reg51. H >
# include < intrins. H >
# define DATE_OUT P1 / / specify P2 as the output
Sbit DATA = DATE_OUT ^ 0; / / column data output bits
Sbit SCLH = DATE_OUT ^ 1; / / scan the clock bit
Sbit SCLT = DATE_OUT ^ 2; / / column data latches
Sbit AB = DATE_OUT ^ 3; / / the row data output bit
Sbit SCK = DATE_OUT ^ 4; / / scan clock position
Unsigned char date [32]. / / 32 bytes of RAM is used as a 16 * 16 grid display cache
Void the display (); / / as the dot matrix scan function, the cached data is displayed to the dot matrix screen
Void display_time (unsigned int timer); / / specify time scan display
Void displaymove (unsigned char * lp, unsigned char c, unsigned char timer) / / the movement effect of the content of the Chinese