📄 e20_dip.c
字号:
case 4 : //进入播放MP3菜单
if (gAUDAction_State != cAUDAction_Play) {
gMain00 = 1;
gMain00 = MEEP_ByteRead(cEEPAddr_PlayTrack);
if (gMain00 != 0xff) MSpecify_Play(gMain00);
gLocal_0 = 0;
do {
gTrack_Name[gLocal_0] = '*';
} while (++gLocal_0 < 12);
}
MDIP_Menu_MP3_Music(gCursorMove,1);
gMenuSelect = cMenu_Main02_Select_MP3;
gDIPTrack_Name = 1;
#ifndef OTG_MODE
gCTBCommandBuffer[0] = cCTB_CommandA04;
gCTBCommandBuffer[1] = cCTB_REARD_INFO;
gCTBCommandBuffer[2] = cCTB_TRACK_NAME;
gCTBCommandBuffer[3] = 0;
MCTBCommandWrite();
#else
mCTB_Read_TreakName();
#endif
if (gInputType != cInput_MP3){
gInputType = cInput_MP3;
mInputSwitch(); //切换4053通道
}
break;
default : break;
}
/*
if (gInputType != cInput_MP3){
Mplay_Stop(cCTB_STOP);
}
*/
if (FAUDMuteEnl) {
FAUDMuteEnl = 0;
mInputSwitch(); //切换4053通道
}
gReturnMenuBuffer = gMenuSelect;
return;
}
void MEnter_Menu_MP3(BYTE gLocal_1){
switch (gLocal_1){
case 1 : //调音量
FPress_Enter_Modify = ~FPress_Enter_Modify;
break;
case 2 : //播放循环
gMenuSelect = cMenu_Main03_LoopPlayMP3;
gBellLong = gPlayTYPE;
break;
case 3 :
gMenuSelect = cMenu_Main03_MP3Name;
gBellLong = gTrackNumber;
MModify_Menu_Value(gTrack_Max,1);
MSpecify_Play(gBellLong);
MDIPTrack_Name();
break;
default : break;
}
return;
}
void MEnter_Menu_Program(){
switch (gCursorMove){
case 1 : //进入"星期列表"菜单
/*选择菜单*/
gCursorMove = 1;//将反白光标置于下一子菜单第一项
gMenuSelect = cMenu_Main02_Week;
MDIP_Menu_week(gCursorMove);
//判断是否有过记忆,有则显示要更新的内容
break;
case 2 ://进入"特别日子列表"菜单下一子菜单
gCursorMove = 1;//将反白光标置于下一子菜单第一项
gMenuSelect = cMenu_Main02_OtherDay;
MDIP_Menu_OtherDay(gCursorMove);
//判断是否有过记忆,有则显示要更新的内容
break;
case 3 : //进入"启动节目定时器"菜单
FControlManual = 1;
gControlManualStatus = cControlAutoStatus;
FNoMission_Staus = 0;
if (FTaskNowing) FCurrMission_Staus = 1;
mLED_Sture();
MLED_Release();
FShow_Timer = ~FTaskNowing;
FAUDMuteEnl = 1; //静音
mInputSwitch();
gCurrOutComctrl = 0; //启动前要关闭所有的电源开关
MPowerComctrl(gCurrOutComctrl);
FCON_RING = 0;
MDEBUG(0x33);
MLine1Conctrl();
gCursorMove = 1;
gMenuSelect = cMenu_Main02_Start_up_TimerList;
MDIP_Start_up_TimerList(gCursorMove);
break;
case 4 : //进入"预热开启时间"菜单
gCursorMove = 1;//将反白光标置于下一子菜单第一项
gMenuSelect = cMenu_Prewarming_SetupTime;
MDIP_Prewarming_SetupTimeList(gCursorMove);
break;
default : break;
}
return;
}
//确定"星期列表"菜单内容后执行更改或进入下一菜单
void MEnter_Menu_WeekList(){
FPress_Enter_Modify = ~FPress_Enter_Modify;
MMDIP_Modify_Date();
if (gCursorMove < 7){
MMDIP_Modify_Status(16*2+8*2,cDOTLine2,gCursorMove);//光标1~6 (内部,1.2.3,4,5,6)
}
else if (gCursorMove < 13){
//满足或不满足每个星期几选项时记忆范围0~FF之中不可有起始时间相同的设置条件
//&不满足每个几月几日选项记忆范围0~FF之中不可有起始时间相同的设置
//准备好项数
MMDIP_Modify_Status(16*2+8*2,cDOTLine3,gCursorMove-6);//光标7~12 7-6(内部,1.2.3,4,5,6)
}
else if (gCursorMove == 13){
//准备好地址,同一星期&同一开始时间都可履盖,
//进入"下一控制"菜单
FPress_Enter_Modify = 0;
gCursorMove = 1;//将反白光标置于下一子菜单第一项
gMenuSelect = cMenu_Menu_WeekOtherCtrl;
//显示"其它控制"菜单
MDIP_Menu_OtherCtrl(gCursorMove);
gBroadcast[6] |= 0x10;
}
//特别日子的变量要清零
return;
}
//确定"特别日子列表"菜单内容或进入下一子菜单
void MEnter_Menu_OtherDay(){
FPress_Enter_Modify = ~FPress_Enter_Modify; //17*2+8*2
MMDIP_Modify_Date();
if (gCursorMove < 7){
MMDIP_Modify_Status(16*2+8*2,cDOTLine2,gCursorMove);//光标1~6 (内部,1.2.3,4,5,6)
}
else if (gCursorMove < 13){
MMDIP_Modify_Status(16*2+8*2,cDOTLine3,gCursorMove-6);//光标7~12 7-6(内部,1.2.3,4,5,6)
}
else if (gCursorMove == 13){
//准备好地址,同一日期&同一开始时间都可履盖
FPress_Enter_Modify = 0;
gCursorMove = 1;//将反白光标置于下一子菜单第一项
gMenuSelect = cMenu_Menu_DayOtherCtrl;
//显示"其它控制"菜单
MDIP_Menu_OtherCtrl(gCursorMove);
gBroadcast[6] |= 0x20;
}
return;
}
void Enter_Main04_ProgramMusic(){
if (gCursorMove < 19){
FPress_Enter_Modify = ~FPress_Enter_Modify;
if (FPress_Enter_Modify){
FDIPReverse = 1;
if (gCursorMove == 1) MDIPASCIIToScreen(0,cDOTLine2,'?');
else if (gCursorMove == 2) MDIPASCIIToScreen(8*1,cDOTLine2,'?');
else if (gCursorMove == 3) MDIPASCIIToScreen(8*2,cDOTLine2,'?');
else if (gCursorMove == 4) MDIPASCIIToScreen(8*4,cDOTLine2,'?');
else if (gCursorMove == 5) MDIPASCIIToScreen(8*5,cDOTLine2,'?');
else if (gCursorMove == 6) MDIPASCIIToScreen(8*6,cDOTLine2,'?');
else if (gCursorMove == 7) MDIPASCIIToScreen(8*8,cDOTLine2,'?');
else if (gCursorMove == 8) MDIPASCIIToScreen(8*9,cDOTLine2,'?');
else if (gCursorMove == 9) MDIPASCIIToScreen(8*10,cDOTLine2,'?');
else if (gCursorMove == 10) MDIPASCIIToScreen(8*0,cDOTLine3,'?');
else if (gCursorMove == 11) MDIPASCIIToScreen(8*1,cDOTLine3,'?');
else if (gCursorMove == 12) MDIPASCIIToScreen(8*2,cDOTLine3,'?');
else if (gCursorMove == 13) MDIPASCIIToScreen(8*4,cDOTLine3,'?');
else if (gCursorMove == 14) MDIPASCIIToScreen(8*5,cDOTLine3,'?');
else if (gCursorMove == 15) MDIPASCIIToScreen(8*6,cDOTLine3,'?');
else if (gCursorMove == 16) MDIPASCIIToScreen(8*8,cDOTLine3,'?');
else if (gCursorMove == 17) MDIPASCIIToScreen(8*9,cDOTLine3,'?');
else if (gCursorMove == 18) MDIPASCIIToScreen(8*10,cDOTLine3,'?');
gBellLong = gBroadcast[gCursorMove+9];//10~27下标
gBellLong_Max = 9;
gBellLong_Min = 0;
gEEPSureWrite = 0x06;
}
else {
gBroadcast[gCursorMove+9] = gBellLong; //10~27下标
++gCursorMove;
if ((gMenuSelectBuffer == cMenu_Menu_DayOtherCtrl) && (gCursorMove > 18)) gCursorMove = 1;
MDIP_Menu_ProgramMusic(gCursorMove);
gEEPSureWrite = 0x06;
}
}
else if (gCursorMove < 26){
if (gCursorMove == 19) FWeek_One = ~FWeek_One;
else if (gCursorMove == 20) FWeek_Two = ~FWeek_Two;
else if (gCursorMove == 21)FWeek_Three = ~FWeek_Three;
else if (gCursorMove == 22) FWeek_Four = ~FWeek_Four;
else if (gCursorMove == 23) FWeek_Five = ~FWeek_Five;
else if (gCursorMove == 24) FWeek_Six = ~FWeek_Six;
else if (gCursorMove == 25) FWeek_Seven = ~FWeek_Seven;
MProgramCurreDay();
gMain00 = gBroadcast[28];
gBroadcast[28] = MDIP_EnterSelectWeek(gBroadcast[28]);
MProgramWorkDay(gCursorMove-18);
if (gBroadcast[28] != gMain00)gEEPSureWrite = 0x07;
}
return;
}
void Enter_Program_Broadcast(){
if (gCursorMove < 3){
FPress_Enter_Modify = ~FPress_Enter_Modify; //17*2+8*2
MDIP_Option_group_Modify(17,gCursorMove);
if (!FPress_Enter_Modify){
if (gCursorMove > 1) gCursorMove = 1;
MDIP_Menu_OtherDay_Broadcast01(gCursorMove);
}
if (!FPress_Enter_Modify){
if (gOption_groupBuffer != gOption_group){
MDIPClearALL();
MDIP_Option_group(0,cDOTLine1,0); //光标0
if (gMenuBroadcastBuffer == cMenu_Main02_OtherDay)MRead_Day_Program_Data();
else MRead_Week_Program_Data();
MDIP_Menu_OtherDay_Broadcast01(gCursorMove);
}
}
gOption_groupBuffer = gOption_group;
}
else if (gCursorMove == 3){
//读出电源内容或播放内容 if ((gBroadcast[6] & 0xf0) ==0x01){
// 星期列表
//else 特别列表
if ((gBroadcast[6] & 0x0f) ==0x01){//只有电源内容
gMenuSelect = cMenu_Menu_Broadcast_PowerValue;
MDIP_Menu_PowerCtrl(0);
}
else if ((gBroadcast[6] & 0x0f)==0x02){ //只有播放内容
gMenuSelect = cMenu_Menu_Broadcast_PlayList;
gCursorMove = 1;
if (gBroadcast[9] & 0x02) {
gCursorMove = 2;
}
// else if (gBroadcast[9] & 0x04) gCursorMove = 3;
else if (gBroadcast[9] & 0x08) gCursorMove = 3;
else if (gBroadcast[9] & 0x10) gCursorMove = 4;
Enter_Main03_SelectProgram();
}
else {
gCursorMove = 1;//将反白光标置于下一子菜单第一项
gMenuSelect = cMenu_Menu_Broadcast_Select;
//显示"其它控制"菜单
MDIP_Menu_OtherCtrl(gCursorMove);
//读出电源内容或播放内容
}
}
return;
}
void mEEPAddr_WirteDayItemMax(){
BYTE g2Local_0;
g2Local_0 = gTAB_YearWeekDay[1]*gTAB_YearWeekDay[2];
if (g2Local_0 <= 0xff){
MEEP_ByteWrite(cEEPAddr_DayItemMaxLow+g2Local_0, gAdd_Option_groupMax);
}
else {
MEEP_ByteWrite(cEEPAddr_DayItemMaxHigh+g2Local_0-111, gAdd_Option_groupMax);
}
return;
}
void Enter_ProgramWeek_ClearAddr(){
BYTE gLocal_0;
BYTE gLocal_3;
gLocal_0 = 0;
gLocal_3 = gCOL_Week;
if (gCursorMove == 1){ //清除此项内容
if (gOption_group < gAdd_Option_groupMax){
//将要最后的项数赋值给当前要清除的项数
}
MEEPAddr_Clear_Week();
MEEP_ByteWrite(TabWeekAddr[gCOL_Week-1],gAdd_Option_groupMax);
gOption_group = 1;
}
else if (gCursorMove == 2){ //清除此日内容
gLocal_0 = 0;
do {
if (MEEP_ByteRead(cEEPAddr_WeekStart+gLocal_0) == gCOL_Week){
MDIPWriteChinese_String(64-16*3,cDOTLine2, "请稍候..");
gOption_group = MEEP_ByteRead(cEEPAddr_WeekItem+gLocal_0);
MEEPAddr_Clear_Week();
}
} while (++gLocal_0 != 0);
gOption_group = 1;
gAdd_Option_groupMax = 0;
MEEP_ByteWrite(TabWeekAddr[gCOL_Week-1],gAdd_Option_groupMax);
}
else if (gCursorMove == 3){ //清除全周内容
MDIPWriteChinese_String(64-16*3,cDOTLine2, "请稍候..");
gLocal_0 = 0;
do {
if ((MEEP_ByteRead(cEEPAddr_WeekStart+gLocal_0) != 0xff)||(MEEP_ByteRead(cEEPAddr_WeekItem+gLocal_0) != 0xff)){
gOption_group = MEEP_ByteRead(cEEPAddr_WeekItem+gLocal_0);
gCOL_Week = MEEP_ByteRead(cEEPAddr_WeekStart+gLocal_0);
MEEPAddr_Clear_Week();
MEEP_ByteWrite(cEEPAddr_WeekItem+gLocal_0, 0xff);
MEEP_ByteWrite(cEEPAddr_SecondStart+gLocal_0, 0xff);
MEEP_ByteWrite(cEEPAddr_MinuteStart+gLocal_0, 0xff);
MEEP_ByteWrite(cEEPAddr_HoureStart+gLocal_0, 0xff);
}
if (gLocal_0 == 0xff) break;
} while (++gLocal_0 != 0);
gCOL_Week = 1;
do {
do {
if (MEEP_ByteRead(cEEPAddr_WeekStart+gLocal_0) == gCOL_Week){
gOption_group = MEEP_ByteRead(cEEPAddr_WeekItem+gLocal_0);
MEEPAddr_Clear_Week();
}
} while (++gLocal_0 != 0);
MDIPWriteChinese_String(64-16*3,cDOTLine2, "请稍候..");
gAdd_Option_groupMax = 0;
gOption_group = 1;
MEEP_ByteWrite(TabWeekAddr[gCOL_Week-1],gAdd_Option_groupMax);
} while (++gCOL_Week < 8);
}
gCOL_Week = gLocal_3;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -