16x16点阵c语言程序的十六进制,16X16点阵C语言程序(16X16 bitmap C language program).doc...

16x16点阵c语言程序的十六进制,16X16点阵C语言程序(16X16 bitmap C language program).doc...16X16 点阵 C 语言程序 16X16 bitmap C language program 16X16 点阵 C 语言程序 16X16 bitmap C language program

大家好,我是讯享网,很高兴认识大家。

16X16点阵C语言程序(16X16 bitmap C language program)

16X16点阵C语言程序(16X16 bitmap C language program)

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

# 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; / / column scan clock bit

Sbit SCLT = DATE_OUT ^ 2; / / column data lock bit

Sbit AB = DATE_OUT ^ 3; / / row data output bits

Sbit SCK = DATE_OUT ^ 4; / / scan clock bit

Unsigned char date [32]. / / 32 byte RAM is used as 16 * 16 dot matrix 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 the timer); / / specify time scan display


讯享网

Void displaymove (unsigned char * lp, unsigned char c, unsigned char timer); / / display the movement effect of the content of Chinese characters, and the LP points to the first address of the first word.

/ / the timer is the speed of movement

Void displaymovetb (unsigned char din, unsigned char * lp, unsigned char timer);

/ / move content up and down, din: 1 is down, 0 is up, lp points to the content to be moved, and timer is moving speed

Void delay (unsigned int a); / / delay subfunctions

/ / very good word-touch software PCtoLCD2002 perfect font options: Yin code, line-by-line, shunt-forward

Code unsigned char yu [32] = {

X7e 0 x00 to 0 x00 to 0, 0 XFC, 0 x02, 0 x04, 0 x02, 0 x04, x22 0, 0 x44, 0 x12, 0 x24, 0 x12, 0 x24, 0 x06, 0 x04,

X12, 0 x0a, 0 x14, 0 0 x24, 0 x62, 0 xc4, 0 x02, 0 x04, 0 x02, 0 x04, 0 x02, 0 x04, 0 x0a, 0 x14, 0 x04, 0 x08 / * "feather", 0 * /};

Code unsigned char yi [32] = {

X12 x7e 0, 0 xf8, 0, 0 x48, 0 x0a, 0 x28, 0 x12, 0 x18, x22 0, 0 x28, 0 x1f, 0 xf0, 0 x11, 0 x10, 0 x1f, 0 xf0.

X1f x11 0, 0 x10, 0, 0 xf0, 0 x08, 0 x20, 0 x7f, 0 XFC, 0 x08, 0 x20, 0 XFF, 0 xfe, 0 x18, 0 x30, 0 x60, 0 x0c / * "wing", 0 * /};

Code unsigned char dian [32] = {

0 x01, 0 x00 to 0 x01, 0 x00 to 0 x01, 0 x00 to 0 x3

小讯
上一篇 2025-01-15 13:41
下一篇 2025-04-04 22:02

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/122408.html