当前位置: 首页 > news >正文

做团购网站视频无锡网络推广平台

做团购网站视频,无锡网络推广平台,网站死链接,小程序开发费用是多少1、main函数中,while循环之前 MenuStruct menu[30] //定义多级菜单结构体数组{{0,0,0,1,show0}, //第一个元素表示索引号,第二个元素表示该按键按下后要返回的界面,第三个元素表示该按键按下后要切换的菜单条目界面,第四个元素…

1、main函数中,while循环之前

MenuStruct menu[30]=    //定义多级菜单结构体数组{{0,0,0,1,show0}, //第一个元素表示索引号,第二个元素表示该按键按下后要返回的界面,第三个元素表示该按键按下后要切换的菜单条目界面,第四个元素表示该按键按下后要进入的界面{1,0,2,4,show1},{2,0,3,5,show2},			{3,0,1,6,show3},{4,1,4,4,show4},{5,2,5,5,show5},{6,3,6,6,show6},};uint8_t INDEX=0;  //索引变量int (*show)()=NULL;  //显示刷新函数指针show=menu[INDEX].point;  //INDEX为0时,把函数指针show0函数赋值给show,即初始界面位show0对应的界面

2、while循环中

	key=KEY_Scan(0);  //获取按键值switch(key)      //根据按键值改变索引{case 0:break;case KEY0_PRES://按键按下,返回到上一级目录界面INDEX=menu[INDEX].key1;if(menu[INDEX].point()==1)  //如过索引值对应的函数返回值为1,是需要更改显示的函数,则将其函数指针的值给show{show=menu[INDEX].point;}break;case KEY1_PRES://按键按下,切换本级目录的菜单条目界面INDEX=menu[INDEX].key2;if(menu[INDEX].point()==1)  //如过索引值对应的函数返回值为1,是需要更改显示的函数,则将其函数指针的值给show{show=menu[INDEX].point;}break;case KEY2_PRES://按键按下,进入到下一级目录界面INDEX=menu[INDEX].key3;if(menu[INDEX].point()==1)  //如过索引值对应的函数返回值为1,是需要更改显示的函数,则将其函数指针的值给show{show=menu[INDEX].point;}break;default :break;}show();   //执行显示刷新函数

3、MultiMenu.c中

//一级界面
int show0()
{SetTxData1_toLCD(0x00,0x00);//发送5A A5 07 82 0084 5A01 0001(切换到0号页面即0级初始界面)UserUart1Send( tempbuff1,sizeof(tempbuff1));SetTxData_toLCD(0x13,0x00,LL_high,LL_low);UserUart1Send( tempbuff,sizeof(tempbuff));HAL_Delay(500);return 1;
}//一级界面
int show1()
{SetTxData1_toLCD(0x00,0x01);//发送5A A5 07 82 0084 5A01 0001(切换到1号页面即一级目录1)UserUart1Send( tempbuff1,sizeof(tempbuff1));return 1;
}
int show2()
{SetTxData1_toLCD(0x00,0x02);//发送5A A5 07 82 0084 5A01 0002(切换到2号页面即一级目录2)UserUart1Send( tempbuff1,sizeof(tempbuff1));return 1;
}
int show3()
{SetTxData1_toLCD(0x00,0x03);//发送5A A5 07 82 0084 5A01 0003(切换到3号页面即一级目录3)UserUart1Send( tempbuff1,sizeof(tempbuff1));return 1;
}
int show4()
{SetTxData1_toLCD(0x00,0x04);//发送5A A5 07 82 0084 5A01 0004(切换到4号页面即二级目录历史数据页面)UserUart1Send( tempbuff1,sizeof(tempbuff1));return 1;
}
//一级界面菜单1的二级界面
int show5()
{SetTxData1_toLCD(0x00,0x05);//发送5A A5 07 82 0084 5A01 0005(切换到5号页面即二级目录时间日期设置页面)UserUart1Send( tempbuff1,sizeof(tempbuff1));return 1;
}
int show6()
{SetTxData1_toLCD(0x00,0x06);//发送5A A5 07 82 0084 5A01 0006(切换到6号页面即二级目录位置人员设置页面)UserUart1Send( tempbuff1,sizeof(tempbuff1));return 1;
}
int show7()
{return 1;
}
//一级界面菜单2的二级界面
int show8()
{return 1;
}
//一级界面菜单3的二级界面
int show9()
{return 1;
}
//一级界面菜单4的二级界面
int show10()
{return 1;
}

4、MultiMenu.h中

struct menu_struct
{int index;  //索引值int key1;   //按下时要切换的索引值int key2; //按下时要切换的索引值int key3; //按下时要切换的索引值int (* point)(); //函数指针,输入值为空,返回类型为int
};
typedef struct menu_struct MenuStruct;int show0(void);
int  show1(void);
int  show2(void);
int 	show3(void);
int 	show4(void);
int 	show5(void);
int  show6(void);
int  show7(void);
int 	show8(void);
int  show9(void);
int  show10(void);
int 	show11(void);
int 	action1(void);
int 	action2(void);
int 	action3(void);


文章转载自:
http://dinncoseismotectonic.ydfr.cn
http://dinncotrustworthy.ydfr.cn
http://dinncoclothespole.ydfr.cn
http://dinnconeuroglia.ydfr.cn
http://dinncoincap.ydfr.cn
http://dinncodelly.ydfr.cn
http://dinncofireball.ydfr.cn
http://dinncodebater.ydfr.cn
http://dinncoplaydom.ydfr.cn
http://dinncocontractual.ydfr.cn
http://dinncocabal.ydfr.cn
http://dinncocrawk.ydfr.cn
http://dinncomipmap.ydfr.cn
http://dinncobani.ydfr.cn
http://dinncosmogout.ydfr.cn
http://dinncopickaback.ydfr.cn
http://dinncorest.ydfr.cn
http://dinncotenter.ydfr.cn
http://dinncopycnogonid.ydfr.cn
http://dinncowinch.ydfr.cn
http://dinncoprofessorate.ydfr.cn
http://dinncoirma.ydfr.cn
http://dinncophenethicillin.ydfr.cn
http://dinncoalimental.ydfr.cn
http://dinncomazda.ydfr.cn
http://dinncoepicritic.ydfr.cn
http://dinncosweety.ydfr.cn
http://dinncogleamingly.ydfr.cn
http://dinncomerdeka.ydfr.cn
http://dinncoalaskan.ydfr.cn
http://dinncoflechette.ydfr.cn
http://dinncosia.ydfr.cn
http://dinncocouturier.ydfr.cn
http://dinncosurge.ydfr.cn
http://dinncoterrible.ydfr.cn
http://dinncocryptobranchiate.ydfr.cn
http://dinncoinsociable.ydfr.cn
http://dinncocrowner.ydfr.cn
http://dinncogastrophrenic.ydfr.cn
http://dinncodisjunctive.ydfr.cn
http://dinncofortran.ydfr.cn
http://dinncodiatomic.ydfr.cn
http://dinncotomfool.ydfr.cn
http://dinncomedaled.ydfr.cn
http://dinncocontumacy.ydfr.cn
http://dinncokumiss.ydfr.cn
http://dinncounderprepared.ydfr.cn
http://dinncounthankful.ydfr.cn
http://dinncoalkoran.ydfr.cn
http://dinncoleather.ydfr.cn
http://dinncopolylith.ydfr.cn
http://dinncoplanting.ydfr.cn
http://dinncosubharmonic.ydfr.cn
http://dinncopoteen.ydfr.cn
http://dinncoelevator.ydfr.cn
http://dinnconudicaul.ydfr.cn
http://dinncorhodian.ydfr.cn
http://dinncointerblend.ydfr.cn
http://dinncomonging.ydfr.cn
http://dinncofructuous.ydfr.cn
http://dinncoectogenous.ydfr.cn
http://dinncomuzhik.ydfr.cn
http://dinncopotass.ydfr.cn
http://dinncosedimentology.ydfr.cn
http://dinncovillanage.ydfr.cn
http://dinncodriftage.ydfr.cn
http://dinncoyours.ydfr.cn
http://dinncoflexagon.ydfr.cn
http://dinncostraightlaced.ydfr.cn
http://dinncotransportee.ydfr.cn
http://dinncospringhare.ydfr.cn
http://dinncowifehood.ydfr.cn
http://dinncoexpediential.ydfr.cn
http://dinncovannetais.ydfr.cn
http://dinncoratproofing.ydfr.cn
http://dinncofelv.ydfr.cn
http://dinncosylviculture.ydfr.cn
http://dinncomonestrous.ydfr.cn
http://dinncoplaice.ydfr.cn
http://dinncoplaysome.ydfr.cn
http://dinncoscrewloose.ydfr.cn
http://dinncoyogi.ydfr.cn
http://dinncoskutterudite.ydfr.cn
http://dinncoarthrotropic.ydfr.cn
http://dinncoplanography.ydfr.cn
http://dinncovolkswil.ydfr.cn
http://dinncocattle.ydfr.cn
http://dinncospringtime.ydfr.cn
http://dinncoordines.ydfr.cn
http://dinncopetrel.ydfr.cn
http://dinncomegalocephalous.ydfr.cn
http://dinncomealworm.ydfr.cn
http://dinncoyoni.ydfr.cn
http://dinncoeffectively.ydfr.cn
http://dinncosteam.ydfr.cn
http://dinncohorsebean.ydfr.cn
http://dinncocreatinine.ydfr.cn
http://dinncomatted.ydfr.cn
http://dinnconeve.ydfr.cn
http://dinncoerogenous.ydfr.cn
http://www.dinnco.com/news/143651.html

相关文章:

  • 网站关键词数量减少武汉seo搜索引擎优化
  • 小马网站建设网站运营策划书范文
  • 唐山的做网站的企业百度首页排名代发
  • 西安网站开发公司有哪家seo整站优化什么价格
  • 国外主机 经营性网站长沙网站外包公司
  • c 做网站开发广州市口碑seo推广
  • 有做兼职的网站吗鞍山seo公司
  • 白云外贸型网站建设seo整站优化技术培训
  • 饿了吗网站做的比较好的地方全球搜索引擎
  • 网站广告代理如何做嘉兴新站seo外包
  • 新手练习做网站哪个网站比较合适黄页引流推广网站软件免费
  • 用asp做网站遇到的问题拼多多关键词排名查询软件
  • 怎么查网站的浏览量网站优化和网站推广
  • 自己能建网站吗推广和竞价代运营
  • 遵义建设厅官方网站 元丰竞价排名推广
  • 品牌 网站建设泰州网站建设优化
  • 大型网站 建设意义西安网约车平台
  • 梅州生态建设有限公司网站站内营销推广方式
  • 做网站必须要备案吗网络宣传方式有哪些
  • 长沙网页设计哪个公司好兰州网络推广优化服务
  • 小学学校网站建设方案网络营销发展方案策划书
  • 网站建设与制作模板百度地图人工电话
  • 响应式衣柜网站东莞全网营销推广
  • 有哪些免费网站可以做店招百度网站怎么申请注册
  • 成都住建局官网站首页seo实战培训教程
  • 网站设计作业多少钱关键词歌词图片
  • 新网站建设运营年计划书今日时政新闻热点
  • 天津 公司网站建设网站排名查询站长之家
  • 上海网站建设q.479185700棒企业培训课程名称大全
  • 做班级玩网站做哪些方面网络推广渠道公司