以文本方式查看主题 - 曙海教育集团论坛 (http://sun4.cn/bbs/index.asp) -- 单片机初中级 (http://sun4.cn/bbs/list.asp?boardid=55) ---- 利用51单片机控制点阵显示屏,方便简单,可以任意修改程序 (http://sun4.cn/bbs/dispbbs.asp?boardid=55&id=2194) |
-- 作者:wangxinxin -- 发布时间:2010-12-7 13:26:05 -- 利用51单片机控制点阵显示屏,方便简单,可以任意修改程序 利用51单片机控制点阵显示屏,方便简单,可以任意修改程序/ g1 i% W! r h( T #include<AT89X51.H># ]\' V5 K4 G2 b1 U6 f+ C #include<INTRINS.H> #define uchar unsigned char #define uint unsigned int \' l6 a: m( T\' D6 i0 j/ Y8 j unsigned char code hzdot1[] ={; ~9 q) G k/ s, C3 G: t& A 0xF7,0xFB,0x77,0x80,0xD6,0xFB,0xD5,0xC0,0xE5,0xFB,0x40,0x80,0xF3,0xFF,0xE3,0xC0,0xD5,0xDE,0xB5,0xC0,0xF5,0xDE,0xF6,0xC0,0xF7,0xDE,0xF7,0xDE,0xF7,0xD6,0xF7,0xEE,/*"精",0*/ 0xEF,0xFE,0xCF,0xEE,0xF7,0xC6,0xF3,0xF8,0x35,0xFE,0xF6,0xDE,0xF7,0xDE,0xF7,0xC1,0x77,0xFF,0x7F,0xFF,0x01,0x80,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,/*"华",0*/, `6 ^1 i& K T# w 0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x03,0xE0,0x7B,0xEF,0x7B,0xEF,0x03,0xE0,0x7B,0xEF,0x7B,0xEF,0x7B,0xEF,0x03,0xE0,0x7B,0xEF,0x7F,0xBF,0x7F,0xBF,0xFF,0x80,0xFF,0xFF,/*"电",0*/; \\4 p+ T* ^# @1 ` 0xFF,0xFF,0x03,0xF0,0xFF,0xFB,0xFF,0xFD,0xFF,0xFE,0x7F,0xFF,0x7F,0xFF,0x7F,0xDF,0x00,0x80,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x5F,0xFF,0xBF,0xFF/*"子",0*/9 W" m7 Y1 L+ |- E- O% T- b ) R/ Z4 V( U% p: r$ e; x };7 L+ C1 c3 ^" U3 o. s4 m9 h) j6 t" m code uchar select[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0x 4 |+ z; M6 Z/ b- N 以上是部分程序 |