//¸ù¾Yμ±Ç°μÄèÕÆú,¸üDÂèÕàú±í.
void calendar_date_refresh(void)
{
u8 weekn; //Öü¼Ä′æ
u16 offx=(lcddev.width-240)/2;
//ÏÔê¾ÑôàúÄêÔÂèÕ
POINT_COLOR=BRED;
BACK_COLOR=BLACK;
LCD_ShowxNum(offx+5,OTHER_TOPY+9,(calendar.w_year/100)%100,2,16,0);//ÏÔê¾Äê 20/19
LCD_ShowxNum(offx+21,OTHER_TOPY+9,calendar.w_year%100,2,16,0); //ÏÔê¾Äê
LCD_ShowString(offx+37,OTHER_TOPY+9,lcddev.width,lcddev.height,16,"-"); //"-"
LCD_ShowxNum(offx+45,OTHER_TOPY+9,calendar.w_month,2,16,0X80); //ÏÔê¾ÔÂ
LCD_ShowString(offx+61,OTHER_TOPY+9,lcddev.width,lcddev.height,16,"-"); //"-"
LCD_ShowxNum(offx+69,OTHER_TOPY+9,calendar.w_date,2,16,0X80); //ÏÔê¾èÕ
//ÏÔê¾Öü¼¸?
POINT_COLOR=RED;
weekn=calendar.week;
Show_Str(5+offx,OTHER_TOPY+35,lcddev.width,lcddev.height,(u8 *)calendar_week_table[gui_phy.language][weekn],16,0); //ÏÔê¾Öü¼¸?
}
原子哥F4里的日历代码,为什么要calendar_week_table[gui_phy.language][weekn],16,0);不是calendar_week_table[gui_phy.language][calendar.week],16,0);
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>