📄 e20_sub.c
字号:
}
gCursorMove = 3;
MDIP_Menu_Record(gCursorMove,gRecord_Type);
break;
#endif
default : break;
}
return;
}
void MReturnMenu(){
MDIPClearALL();
gCursorMove = 1;
switch (gReturnMenuBuffer){
case cMenu_Main02_Select_MP3 :
case cMenu_Main03_LoopPlayMP3 :
case cMenu_Main03_MP3Name :
MEnter_Menu_PlayMusic(4);
break;
case cMenu_Main02_Select_LINE : //进入播放LINE菜单
MEnter_Menu_PlayMusic(3);
break;
case cMenu_Main02_Select_MIC : //进入播放MIC菜单
MEnter_Menu_PlayMusic(1);
break;
case cMenu_Main02_Select_Tuner : //进入播放收音菜单
MEnter_Menu_PlayMusic(2);
break;
case cMenu_Main02_Start_up_TimerList :
gCursorMove = 3;
MEnter_Menu_Program();
break;
default :
gMenuSelect = cMenu_Main;
MDIP_Main_Menu(gCursorMove); //显示 主菜单 & 反白光标
break;
}
return;
}
void MenuBuffer(){
switch (gInputType){
case cInput_MIC :
gReturnMenuBuffer = cMenu_Main02_Select_MIC;
break;
case cInput_Tuner :
gReturnMenuBuffer = cMenu_Main02_Select_Tuner;
break;
case cInput_Record :
break;
case cInput_AUX :
gReturnMenuBuffer = cMenu_Main02_Select_LINE;
break;
case cInput_MP3 :
gReturnMenuBuffer = cMenu_Main02_Select_MP3;
break;
default :
break;
}
return;
}
void MCursor_Move(){
FCursor_Move = 1;
if (!FPress_Enter_Modify) {
gAutoExitTime = 130;
switch (gMenuSelect){
case cMenu_Exit :
FPress_Enter_Modify = 1;
MReturnMenu(); //返回原来的播放状态
break;
case cMenu_Main :
#ifndef OTG_MODE
MMenu_Select_Opation(6); //移动主菜单 && 反白光标
#else
MMenu_Select_Opation(4);
#endif
MDIP_Main_Menu(gCursorMove); //显示 主菜单 & 反白光标
break;
/********************************************************************************/
//在主菜单下的六项菜单
case cMenu_Main01_Timer :
MMenu_Select_Opation(13); //移动编程菜单 && 反白光标
MDIP_Menu_TimerList(gCursorMove);
break;
case cMenu_Main01_Program :
MMenu_Select_Opation(4); //移动编程菜单 && 反白光标
MDIP_ProgramList_Menu();
break;
case cMenu_Main01_Power :
MMenu_Select_Opation(4); //移动编程菜单 && 反白光标
MDIP_Menu_Power_Status(gCursorMove);
break;
case cMenu_Main01_PlayMusic :
MMenu_Select_Opation(4);
MDIP_Menu_PlayMusic(gCursorMove);
break;
#ifndef OTG_MODE
case cMenu_Main01_Record :
MMenu_Select_Opation(3); //移动编程菜单 && 反白光标
MDIP_Menu_SelectRecord();
break;
case cMenu_Main01_Erase :
MMenu_Select_Opation(2);
MDIP_Menu_Select_Erase(gCursorMove);
break;
#endif
/********************************************************************************/
case cMenu_Main02_WeekList :
MMenu_Select_Opation(13);
MDIP_Menu_weekList(gCursorMove);
break;
case cMenu_Menu_WeekOtherCtrl :
case cMenu_Menu_DayOtherCtrl :
case cMenu_Menu_Broadcast_Select :
MMenu_Select_Opation(2);
MDIP_Menu_OtherCtrl(gCursorMove);
break;
case cMenu_Main02_OtherDay_List :
MMenu_Select_Opation(13);
MDIP_Menu_OtherDay_List(gCursorMove);
break;
case cMenu_Menu_PowerCtrl :
if (gMenuSelectBuffer == cMenu_Menu_WeekOtherCtrl) MMenu_Select_Opation(11);
else MMenu_Select_Opation(4);
MDIP_Menu_PowerCtrl(gCursorMove);
break;
case cMenu_Menu_SelectProgram : //"节目选择内容菜单"
MMenu_Select_Opation(4);
MDIP_Menu_SelectProgram(gCursorMove);
break;
#ifndef OTG_MODE
/****************************************************************************/
case cMenu_Main02_Record_MIC :
MMenu_Select_Opation(3);
MDIP_Menu_Record(gCursorMove,1);
break;
case cMenu_Main02_Record_LINE :
MMenu_Select_Opation(3);
MDIP_Menu_Record(gCursorMove,2);
break;
case cMenu_Main02_Record_Tuner :
MMenu_Select_Opation(3);
MDIP_Menu_Record(gCursorMove,3);
break;
/****************************************************************************/
case cMenu_Main02_SectionErase :
MMenu_Select_Opation(2); //移动主菜单 && 反白光标
MDIP_Menu_SectionErase(gCursorMove,gBellLong);
break;
#endif
case cMenu_Main02_Select_MP3 :
MMenu_Select_Opation(3);
MDIP_Menu_MP3_Music(gCursorMove,1);
break;
case cMenu_Main03_MP3Name :
gCursorMove = 3;
MModify_Menu_Value(gTrack_Max,1);
MSpecify_Play(gBellLong);
MDIPTrack_Name();
break;
case cMenu_Main03_LoopPlayMP3 :
MModify_Menu_Value(4,1);
MDIP_Play_Type(gBellLong);
break;
case cMenu_Main02_Select_Tuner :
MMenu_Select_Opation(4);
MDIP_Menu_Tuner_Music(gCursorMove);
break;
case cMenu_Main02_Week :
MMenu_Select_Opation(6);
MDIP_Menu_week(gCursorMove);
break;
case cMenu_Main02_OtherDay :
MMenu_Select_Opation(9);
MDIP_Menu_OtherDay(gCursorMove);
break;
case cMenu_Prewarming_SetupTime :
MMenu_Select_Opation(2);
MDIP_Prewarming_SetupTimeList(gCursorMove);
break;
case cMenu_Main04_ProgramMusic :
if (gMenuSelectBuffer == cMenu_Menu_DayOtherCtrl) MMenu_Select_Opation(18);
else if (gMenuSelectBuffer == cMenu_Menu_WeekOtherCtrl) MMenu_Select_Opation(25);
MDIP_Menu_ProgramMusic(gCursorMove);
break;
case cMenu_Main04_ProgramTuner :
if (gMenuSelectBuffer == cMenu_Menu_WeekOtherCtrl)MMenu_Select_Opation(9);
else if (gMenuSelectBuffer == cMenu_Menu_DayOtherCtrl) MMenu_Select_Opation(2);
MDIP_Menu_ProgramTuner(gCursorMove);
break;
case cMenu_Main04_ProgramMIC :
case cMenu_Main04_ProgramLINE :
if (gMenuSelectBuffer == cMenu_Menu_DayOtherCtrl) MMenu_Select_Opation(1);
else if (gMenuSelectBuffer == cMenu_Menu_WeekOtherCtrl) MMenu_Select_Opation(8);
MDIP_Main04_ProgramMIC(gCursorMove);
break;
case cMenu_Day_Program_Broadcast :
if (FEEP_Already_Write) MMenu_Select_Opation(3);
else MMenu_Select_Opation(2);
MDIP_Menu_OtherDay_Broadcast01(gCursorMove);
break;
case cMenu_Day_Program_ClearAddr :
MMenu_Select_Opation(3);
MDIP_Menu_Program_ClearAddr(gCursorMove);
break;
case cMenu_Main02_Select_MIC :
case cMenu_Main02_Select_LINE :
mAUDVolCtrl();
MDIP_Menu_Volume(0+8*4,gCursorMove); //光标1
break;
case cMenu_Main02_Start_up_TimerList :
if (FTaskNowing){
mAUDVolCtrl();
}
break;
#ifndef OTG_MODE
case cMenu_EnterSaveRevord :
MMenu_Select_Opation(2);
MDIP_Menu_EnterSaveRevord(gCursorMove);
break;
#endif
default : break;
}
}
else {
switch (gMenuSelect){
case cMenu_Main01_Timer :
if (gCursorMove < 7) {
MMove_Date_Value(8*2,cDOTLine1,gCursorMove);//光标1 (1,2,3,4,5,6)
if (gCursorMove == 6){
if (FKeyJogUp_A){
++gRTC_Week;
}
else {
if (gRTC_Week > 1) --gRTC_Week;
}
MRTCWrite(cRTC_Week, gRTC_Week);
MDELAY(10);
MDIP_Week_day(128-17*2-7*2,cDOTLine2,0,gRTC_Week);//光标13(13-12,即1)
}
}
else if (gCursorMove < 13) MMove_Date_Value(0,cDOTLine2,gCursorMove-6); //光标7~13 7-6(1,2,3,4,5,6)
else if (gCursorMove == 13){
MModify_Menu_Value(gBellLong_Max,gBellLong_Min); //移动飞梭时,更变gBellLong,
MRTC_Week(gBellLong); //日、一、二、三、四、五、六、
FDIPReverse = 1;
MDIPChineseToScreen(128-8*2, cDOTLine2, gNumberWeek);
}
break;
case cMenu_Main02_OtherDay_List :
if (gCursorMove < 7){
//如果发现设置起始时间&日期数有相同的,项数要立即回到要履盖的项数
MMove_Date_Value(16*2+8*2,cDOTLine2,gCursorMove);//光标1~6 (内部1,2,3,4,5,6)
}
else if (gCursorMove < 13){
MMove_Date_Value(16*2+8*2,cDOTLine3,gCursorMove-6);//光标7~12 (7-6,内部1,2,3,4,5,6)
}
break;
case cMenu_Main02_OtherDay :
if (gCursorMove <3){
MMove_Date_Value(17,cDOTLine1,gCursorMove);
}
else if (gCursorMove < 7) MMove_Date_Value(17*2+8*4,cDOTLine1,gCursorMove); //光标3~6 3(即3,4,5,6)
break;
case cMenu_Day_Program_Broadcast :
if (gCursorMove <3){
MMove_Date_Value(17,cDOTLine1,gCursorMove);
}
break;
case cMenu_Main02_WeekList :
if (gCursorMove < 7){
MMove_Date_Value(16*2+8*2,cDOTLine2,gCursorMove);//光标1~6 (内部1,2,3,4,5,6)
//如果发现设置起始时间&星期数有相同的,项数要立即回到要履盖的项数
}
else if (gCursorMove < 13){
MMove_Date_Value(16*2+8*2,cDOTLine3,gCursorMove-6);//光标7~12 (7-6,内部1,2,3,4,5,6)
}
break;
case cMenu_Main02_Week :
if (gCursorMove == 1){
MModify_Menu_Value(gBellLong_Max,gBellLong_Min); //移动飞梭时,更变gBellLong,
MRTC_Week(gBellLong); //日、一、二、三、四、五、六、
FDIPReverse = 1;
MDIPChineseToScreen(16*2, cDOTLine1, gNumberWeek);
}
else if (gCursorMove == 2){
MModify_Menu_Value(gBellLong_Max,gBellLong_Min); //移动飞梭时,更变gBellLong,
FDIPReverse = 1;
MDIPASCIIToScreen(128-17-8*2,cDOTLine1,gBellLong+ '0'); //2,3,5,6,8,9
}
else if (gCursorMove == 3){
MModify_Menu_Value(gBellLong_Max,gBellLong_Min); //移动飞梭时,更变gBellLong,
FDIPReverse = 1;
MDIPASCIIToScreen(128-17-8*1,cDOTLine1,gBellLong+ '0'); //2,3,5,6,8,9
}
break;
case cMenu_Main02_Select_MP3 :
if (gCursorMove == 1) {
mAUDVolCtrl();
MDIP_Menu_Volume(128-8*3-17*2,gCursorMove); //光标1
}
break;
case cMenu_Main02_Select_Tuner :
if (gCursorMove == 1){
mAUDVolCtrl();
MDIP_Menu_Volume(128-8*3-17*2,gCursorMove); //光标1(5-4)
}
else if (gCursorMove == 2) {
if (FKeyJogUp_A){
if (++g2TUNAddrRead > 255){
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -