Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
#include "sys.h"
static uint8_t InterFace=0;//页面显示标志位 自动模式下,一页显示不完所有信息,所以分两页显示,0显示第一页,1显示第二页
uint8_t OperateMode=0;//运行模式标志位
uint8_t IndexFlag1=1;//选项索引
uint8_t CursorFlag1=1;//光标索引
uint8_t IndexFlag=1;//选项索引
uint8_t CursorFlag=1;//光标索引
/******************
功能:模式选择及控制界面
参数:无
返回值:无
******************/
void Mode_Decide(void)//模式判定
{
}
/******************
功能:显示界面
参数:无
返回值:无
******/
void Inform_Show(void)
{
if(!InterFace)//自动模式页面1
{
oled_ShowCHinese(161,20,48);
oled_ShowCHinese(162,20,49);
oled_ShowCHinese(163,20,50);
oled_ShowCHinese(164,20,51);
oled_ShowCHinese(165,20,52);
oled_ShowCHinese(166,20,53);
}
/******************
功能:自动控制
参数:无
返回值:无
******************/
void AutoContrl(void)
{
//1.当监测到防盗开启时 监测到有人 蜂鸣器开启报警并且 显示屏显示警告
if (System.BurglarFlag == 1 && SensorData.HumanBody == 1) {
System.Buzzer = 1;
} else {
System.Buzzer = 0;
}
}
/******************
功能:防盗模式
参数:无
返回值:无
******************/
void Anti_theft_mode(){
}
/******************
功能:手动控制界面
参数:无
返回值:无
******************/
void Manual_Contrl(void)
{
if (CursorFlag == 1) {
oled_ShowString(16 * 7, 2 * 1, "*", 16);
} else {
oled_ShowString(16 * 7, 2 * 1, " ", 16);
}
}
/******************
功能:阈值设置
参数:无
返回值:无
******************/
void ThresholdSet(void)
{
}
void Manual_Mode()
{
}