假计数器

#include 
   
#define uint unsigned int
#define uchar unsigned char
   
//uchar code DIS_CODE[10]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10};
uchar code DIS_CODE[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90};
   
void delay_ms(uint timer)
{
    uchar j=0;
    while(timer--)
    {
        for(j=124;j>0;j--)
        {
            ;
        }
    }
}
   
/******/
   
void main(void)
{
    uchar i=0,n[4]={0,0,0,0};
    while(1)
    {
        for(i=0;i<4;i++)
        {
            P1=(1<
			

假计数器》上有1条评论

  1. Pingback引用通告: BZ编程小组 作品 | BZ编程小组

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.