write(0x80,((ctime.second/10)<<4|(ctime.second%10)));Р write(0x82,((ctime.minute/10)<<4|(ctime.minute%10)));Р write(0x84,((ctime.hour/10)<<4|(ctime.hour%10)));Р write(0x8e,0x80);Р }Р else Р {Р write(0x8e,0x00);Р write(0x86,((ctime.day/10)<<4|(ctime.day%10)));Р write(0x88,((ctime.month/10)<<4|(ctime.month%10)));Р write(0x8a,((ctime.week/10)<<4|(ctime.week%10)));Р write(0x8c,((ctime.year/10)<<4|(ctime.year%10)));Р write(0x8e,0x80);Р }Р flag1=1 ;Р}Р//刷新显示缓冲区Рvoid refbuf()Р{Р switch(flag)Р {Р case 1 :Р disbuf[0] = LED[ctime.day%10];Р disbuf[1] = LED[ctime.day/10];Р disbuf[2] = 0xbf ;Р disbuf[3] = LED[ctime.month%10];Р disbuf[4] = LED[ctime.month/10];Р disbuf[5] = 0xbf ;Р disbuf[6] = LED[ctime.year%10];Р disbuf[7] = LED[ctime.year/10];Р break ;Р case 2 :Р disbuf[0] = 0xbf ;Р disbuf[1] = 0xbf ;