您的位置 首页 嵌入式

51单片机驱动16*16点阵显现生日快乐程序

自己亲手做的一个点阵屏仿真+实物,送给女朋友的生日礼物单片机+液晶显示带仿真文件妞都狠喜欢这个了,显示生日快乐4个字然后还有心型,

自己亲手做的一个点阵屏 仿真+什物,送给女朋友的生日礼物单片机+液晶显现带仿真文件


妞都狠喜爱这个了,显现生日快乐4个字然后还有心型,还有i love you,悉数源码和仿真文件的下载地址是:http://www.51hei.com/bbs/dpj-18851-1.html

下面是部分源码预览:
#include
#include
#define din P3_2
#define load P3_3
#define clk P3_4
#define uchar unsigned char
#define uint unsigned int
unsigned char code dispcode[]={0x7e,0x30,0x6d,0x79,0x33,0x5b,0x5f,0x70,0x7f,0x7b,0x01};
uchar buf[]={0,0,0,0,0,0,0,0};
SYSTEMTIME time1;
unsigned char code tab1[]={
0x0F,0x00,0x1F,0x80,0x3F,0xC0,0x7F,0xE0,
0x7F,0xF0,0x7F,0xF8,0x3F,0xFC,0x1F,0xFE,
0x1F,0xFE,0x3F,0xFC,0x7F,0xF8,0x7F,0xF0,
0x7F,0xE0,0x3F,0xC0,0x1F,0x80,0x0F,0x00,//心型图

0x00,0x80,0x01,0x02,0x06,0x02,0x78,0x82,
0x08,0x82,0x08,0x82,0x08,0x82,0x08,0x82,
0xFF,0xFE,0x48,0x82,0x08,0x82,0x08,0x82,
0x19,0x82,0x08,0x86,0x00,0x02,0x00,0x00,/*”生”,2*/

0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFC,
0x42,0x08,0x42,0x08,0x42,0x08,0x42,0x08,
0x42,0x08,0x42,0x08,0x42,0x08,0x7F,0xFC,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*”日”,3*/

0x0E,0x00,0x00,0x00,0xFF,0xFF,0x10,0x00,
0x0D,0x01,0x11,0x02,0x11,0x0C,0x11,0x70,
0xFF,0x80,0x11,0x60,0x11,0x10,0x11,0x0C,
0x1F,0x06,0x01,0x03,0x01,0x02,0x00,0x00,/*”快”,4*/

0x00,0x00,0x00,0x04,0x02,0x18,0x3F,0x30,
0x22,0xE0,0x22,0x48,0x22,0x04,0x62,0x02,
0x5F,0xFC,0x42,0x00,0xC2,0x00,0xC2,0x40,
0x42,0x30,0x02,0x1C,0x00,0x08,0x00,0x00,/*”乐”,5*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x3F,0x8C,0x7F,0xDE,
0x7F,0xDE,0x3F,0x8C,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//!

0x00,0x00,0x42,0xFE,0x42,0x02,0x7E,0x00,
0x42,0xFE,0x42,0x82,0x00,0xFE,0x00,0x00,
0x00,0xFC,0x00,0x02,0x7E,0xFC,0x02,0x00,
0x02,0xFE,0x02,0x92,0x7E,0x92,0x00,0x00,//I LOVE U

0xE0,0x07,0x8F,0xF1,0x98,0x19,0x30,0x0C,
0x64,0x46,0x48,0x22,0x44,0x12,0x40,0x12,
0x40,0x12,0x44,0x12,0x48,0x22,0x64,0x46,
0x30,0x0C,0x98,0x19,0x8F,0xF1,0xE0,0x07,//笑脸
};
unsigned char code tab2[]={ 0x0f,0x0e,0x0d,0x0c,0x0b,0x0a,0x09,0x08,
0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00};
uchar code tab3[]={0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01,0x03,0x06,
0x0c,0x18,0x30,0x60,0xe0,0x70,0x38,0x1c,0x0e,0x07,
0x0f,0x1f,0x3e,0x7c,0xf8,0xfc,0x7e,0x3f,0x7f,0xfe,
0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0x3f,
0x9f,0xcf,0xe7,0xf3,0xf9,0xfc,0xf8,0xf1,0xe3,0xc7,
0x8f,0x1f,0x0f,0x87,0xc3,0xe1,0xf0,0xe0,0xc1,0x83,
0x07,0x03,0x81,0xc0,0x80,0x01,0x00,
0x7f,0x3f,0x1f,0x0f,0x07,0x03,0x01,0x00,0x01,0x03,
0x07,0x0f,0x1f,0x3f,0x7f,0xff,0xe7,0xc3,0x81,0x00,
0x81,0xc3,0xe7,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,
0xbf,0x7f,0x7e,0x7d,0x7b,0x77,0x6f,0x5f,0x3f,0x3e,
0x3d,0x3b,0x37,0x2f,0x1f,0x1e,0x1d,0x1b,0x17,0x0f,
0x0e,0x0d,0x0b,0x07,0x06,0x05,0x03,0x02,0x01,0x00,
0x55,0xaa,0x55,0xaa,0x00,0xff,0x00,0xff,0x00,0xff,};
sbit KAI=P1^4;
sbit KAI2=P1^5;
void delay(uint time);
uint j=0,q=0;
uchar r,t=0,num=0;
void csh()
{
load=1;
clk=1;
din=1;
}

声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/qianrushi/318114.html

为您推荐

联系我们

联系我们

在线咨询: QQ交谈

邮箱: kf@86ic.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部