1 Star 3 Fork 2

git4Chub/Menu_Event_C_Code

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Hardware_setting.c 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
morixinguan 提交于 2019-03-04 16:20 . Add files via upload
#include "Hardware_setting.h"
Current_Select_Mode current_mode ;
//设置音量
void setting_volume(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Volume_Level = VOLUME_LEVEL0 ;
break ;
case 1:
current_mode.Current_Volume_Level = VOLUME_LEVEL1 ;
break ;
case 2:
current_mode.Current_Volume_Level = VOLUME_LEVEL2 ;
break ;
case 3:
current_mode.Current_Volume_Level = VOLUME_LEVEL3 ;
break ;
case 4:
current_mode.Current_Volume_Level = VOLUME_LEVEL4 ;
break ;
default:
break ;
}
}
//设置背光
void setting_backlight(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL0 ;
break ;
case 1:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL1 ;
break ;
case 2:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL2 ;
break ;
case 3:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL3 ;
break ;
case 4:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL4 ;
break ;
default:
break ;
}
}
//设置无线网络的状态
void setting_wlan_status(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Select_Wlan = WLAN_OFF ;
break ;
case 1:
current_mode.Current_Select_Wlan = WLAN_OFF ;
break ;
default:
break ;
}
}
//设置语言
void setting_language(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Select_Language = CHINESE ;
break ;
case 1:
current_mode.Current_Select_Language = ENGLISH ;
break ;
default:
break ;
}
}
//设置灵敏度
void setting_sensivity(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Sensivity = SENSIVITY_HIGH ;
break ;
case 1:
current_mode.Current_Sensivity = SENSIVITY_MIDDLE ;
break ;
case 2:
current_mode.Current_Sensivity = SENSIVITY_LOW ;
break ;
default:
break ;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/railph/Menu_Event_C_Code.git
git@gitee.com:railph/Menu_Event_C_Code.git
railph
Menu_Event_C_Code
Menu_Event_C_Code
master

搜索帮助