void DIS_BIT(void)
{
if ((fct==0)||(fct==4)||(fct==5)||(fct==6))
{
led_bit[0]=min%10;
led_bit[1]=min/10;
led_bit[2]=hour%10;
led_bit[3]=hour/10;
led_bit[4]=day%10;
led_bit[5]=day/10;
}
else
{
led_bit[0]=month%10;
led_bit[1]=month/10;
led_bit[2]=year%10;
led_bit[3]=(year%100)/10;
led_bit[4]=(year%1000)/100;
led_bit[5]=year/1000;
}
}
此帖出自
小平头技术问答
一周热门 更多>