|
|
- #include<reg51.h>
- #define uchar unsigned char
- #define uint unsigned int
- void delay(uint);
- uchar d1;
- uchar code a[]={0xff, 0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F,};
- void main()
- {
- d1 = P1&0xe3;
- }
- void delay(uint t)
- {
- uchar a,s;
- for(a=0;a<t;a++)
- for(s=0;s<250;s++);
- }
復(fù)制代碼 |
|