?? sensormenu.c
字號:
//mymenu.c
#include "guangming.h"
#include "temp.h"
#include "adc_voltage.h"
#include "menu.h"
#include "hal.h"
#include "lcd128_64.h"
#include "string.h"
#include "potentiometer.h"
extern INT8U ScanKey(void);
void Sensor_Menu(void)
{
INT8U sel;
//if(LanguageSel == 1)
// {
strcpy((char*)MenuItem[0] ,"1:Photosensor ");
strcpy((char*)MenuItem[1] ,"2:Temperature ");
strcpy((char*)MenuItem[2] ,"3:SYS Voltage ");
strcpy((char*)MenuItem[3] ,"4:Potentiometer ");
// }
// else
// {
/*
strcpy((char*)MenuItem[0] ,"1:光照采樣 ");
strcpy((char*)MenuItem[1] ,"2:溫度采樣 ");
strcpy((char*)MenuItem[2] ,"3:工作電壓 ");
strcpy((char*)MenuItem[3] ,"4:電位器 ");
*/
// }
TopDisp = 12;
FirstItem = 0;
NowItem = 0;
while(1)
{
sel = DrawMenu(MenuItem , 4);
switch(sel)
{
case 0:
{
Photosenser_main();
}break;
case 1:
{
Temperature_main();
}break;
case 2:
{
Voltage_main();
}break;
case 3:
{
Potentiometer_main();
}break;
case 0xff:
{
while(ScanKey() == K_CANCEL);
TopDisp = 1;
return;
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -