自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 移动点阵

#include#include#define uchar unsigned charsbit ser1=P2^0;sbit srclk1=P2^1;sbit rclk1=P2^2;sbit ser=P1^0;sbit srclk=P1^1;sbit rclk=P1^2;uchar w[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,

2014-07-12 17:25:53 491

转载 I2C总线入门(PCF8591T和AT24C02的使用)

http://blog.sina.com.cn/s/blog_64ecfc2f0100tiir.html

2014-07-10 11:43:27 1002

转载 反转矩阵代码

#include //头文件#define uchar unsigned char //宏定义#define uint unsigned intuchar key,n;   //定义变量uchar code table[]={0xee,0xde,0xbe,0x7e,0xed,0xdd,0xbd,0x7d,0xeb,0xdb,0xbb,0x7b,0xe7,0xd7,0xb7,0x77

2014-07-08 20:13:18 503

翻译 单片机矩阵键盘反转法思想

1.我们给P1口赋值0x0f,即00001111,假设0键按下了,则这时P1口的实际值为00001110;      2.我们给P1口再赋值0xf0,即11110000,如果0键按下了,则这时P1口的实际值为11100000;     

2014-07-08 17:50:09 3195

原创 中断显示时间

//通过中断控制时间,在数码管上显示 #include sbit wei=P2^3; sbit duan=P2^2; unsigned char code d[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};   //duanunsigned char code w[]={0xfe,0xfd,0xfb,0xf7,0xe

2014-07-07 16:15:01 426

原创 数码管只用延时函数显示时间

#includesbit duan=P2^2;sbit wei=P2^3;unsigned char code d[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};   //duanunsigned char code w[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};char

2014-07-07 16:13:12 2521

原创 1602时钟

#includesbit duan=P2^2;sbit wei=P2^3;sbit rs=P2^4;sbit rw=P2^5;sbit en=P2^6;char Time[16]="0123456789";//用于显示int sz1,sz2,fz1,fz2,mz1,mz2;int flag,mon,day,count;void delay(int a)  //延

2014-07-07 16:08:00 422

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除