- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 发光二极管循环点亮
#include#include#define uint unsigned int#define uchar unsigned charuchar temp;void delay(uint z);void main(){temp=0xfe;P1=temp;while(1) { delay(1000);temp=_crol_(temp,1
2014-04-14 09:48:56
2517
转载 数码管数字变化代码
#include#define uint unsigned int #define uchar unsigned charsbit dula=P2^6;sbit wela=P2^7;uchar num;uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,
2014-04-13 17:18:52
1284
原创 延时程序
常用到的 void delay(uint z){uint x,y;for(x=z;x>0;x--)for(y=110;y>0;y--);}
2014-04-13 16:35:34
625
原创 点亮数码管
#includesbit dula=P2^6;sbit wela=P2^7;void main(){wela=1;P0=0Xf0;wela=0;dula=1;P0=0X07;dula=0;while(1);}
2014-04-13 16:22:08
628
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人