| 5# 樓主 |發表广东凌丰家居用品股份有限公司广东凌丰家居用品股份有限公司於昨天 14:05|衹看該作者 我用順序广东凌丰家居用品股份有限公司寫入的 switch(RealTime.week) { case 1:// #define MONDAY_NAME "ÐÇÆÚÒ»\0\0" memcpy(Device_Information, MONDAY_NAME, sizeof(MONDAY_NAME) + 1); sys_write_vp(Week_VAL_ADDR, Device_Information, 10); break; case 2:// #define TUESDAY_NAME "ÐÇÆÚ¶þ\0\0" memcpy(Device_Information, TUESDAY_NAME, sizeof(TUESDAY_NAME) + 1); sys_write_vp(Week_VAL_ADDR, Device_Information, 10); break; case 3:// #define WEDNESDAY_NAME "ÐÇÆÚÈý\0\0" memcpy(Device_Information, WEDNESDAY_NAME, sizeof(WEDNESDAY_NAME) + 1); sys_write_vp(Week_VAL_ADDR, Device_Information, 10); break; case 4:// #define THURSDAY_NAME "ÐÇÆÚËÄ\0\0" memcpy(Device_Information, THURSDAY_NAME, sizeof(THURSDAY_NAME) + 1); sys_write_vp(Week_VAL_ADDR, Device_Information, 10); break; case 5:// #define FRIDAY_NAME "ÐÇÆÚÎå\0\0" memcpy(Device_Information, FRIDAY_NAME, sizeof(FRIDAY_NAME) + 1); sys_write_vp(Week_VAL_ADDR, Device_Information, 10); break; case 6://ÐÇÆÚÁù #define SATURDAY_NAME "ÐÇÆÚÁù\0\0" memcpy(Device_Information, SATURDAY_NAME, sizeof(SATURDAY_NAME) + 1); sys_write_vp(Week_VAL_ADDR, Device_Information, 10); break; case 7://ÐÇÆÚÈÕ #define SUNDAY_NAME "ÐÇÆÚÈÕ\0\0" memcpy(Device_Information, SUNDAY_NAME, sizeof(SUNDAY_NAME) + 1); sys_write_vp(Week_VAL_ADDR, Device_Information, 10); break; } |
|