⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sensormenu.c

📁 CC2430的液晶显示程序
💻 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 + -