,可在线阅读全文,

《基于物联网技术的温室大棚操控系统设计.doc》由会员分享。

12、e(b=,);eak;}eak;case:switch(key){case:if(!b){Readage(set_rtc_code,address,);Readage(wet,addressx,);}clean();showall(i+=b);if(b)choose(,);i++;b=;eak;case:showall(i);choose(b+,);if(b)b=;elseb=;choose(b+,);eak;case:showall(i);choose(b+,);if(b)b=;elseb=;choose(b+,);eak;case:i=;德州学院物理系届电子信息科学与技术专业毕业设计clean();showall(i);choose(b=,);eak;}eak;case:if(key==){b=i=m=;menu();eak;}elseif(key==){b=;i=;clean();showall();choose(,);eak;}eak;case:switch(key){case:draw(b);i++;eak;case:showall(i);choose(b,);b++;if(bgt)b=;choose(b,);eak;case:showall(i);choose(b,);if(!b)b=;b;choose(b,);eak;case:b=;i=;_code[]time[]));=((set_rtc_code[]==time[])amam(set_rtc_code[]=time[]));if(!(||q||r))eak;case:q=((wet[]time[]));=((wet[]==time[])amam(wet[]gttime[]));r=((wet[]==time[])amam(wet[]time[]));q=((wet[]==time[])amam(wet[]time[]));if(||q||r)li=;temelseli=;**q=(wet[]lttime[]);德州学院物理系届电子信息科学与技术专业毕业设计=(wet[]gttime[]);if(||q)li=;elseli=;lightq=(wet[]time[]);if(||q)mo=;**elsemo=;quotCOquot}}voidmain()quot主函数quot{unsignedcharb=;co=;cs=;delay();IE=x;TCON=x;IP=x;TMOD=x;TH=xc;TL=xb;init_lcd();wr_lcd(comm,x);wr_lcd(comm,x);delay();led=;welcome();delay();m=;delay();Readage(time,,);quot读取参考值quotReadage(time,,);k=ReadC(xff);g=ReadC(xfe);z();delay();m=;delay();i=key=m=;showall();showall();writeall();zi();while(){if(key)德州学院物理系届电子信息科学与技术专业毕业设计{menu();key=key=key=key=;key=;}}}voidexint()interrutquot外部中断,扫描按键quot{led=;if(!key)key=;elseif(!key)key=;elseif(!key)key=;elseif(!key)key=;elsekey=;m=。

11、{case:qr=x;qq=max[]*x+max[];q=min[]*x+min[];eak;case:qr=x;qq=max[]*x+max[];q=min[]*x+min[];eak;case:qr=x;qq=max[];q=min[];eak;}D=;D=D=D=D=D=D=D=;for(;qwltaddress;qr+=){qe=ReadC(qr);if(qdlt)qw=qe*x+ReadC(qr+);elseqw=qe;德州学院物理系届电子信息科学与技术专业毕业设计image_deal(qe,x+(set_rtc_code[]x)*+(set_rtc_code[]%x),qd,qq,q,(addressx));qr+=xa;}}voidmenu()quot菜单quot{switch(i){case:showall(i++);b=;choose(,);eak;case:switch(key){case:clean();showall(i++);choose(,);choose(b,);eak;case:case:showall();choose(,);eak;case:led=;wr_lcd(comm,x);i=b=;eak;}eak;case:switch(key){case:i=i+*b;clean();showall(i++);choos 。

#p#分页标题#e#

10、ignedchara,unsignedcharw)quot反白quot{w=(xff)*w;switch(a){case:con_dis(w,w,x,x,,);quot第一行前个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行前个字反白quoteak;case:con_dis(w,w,x,x,,);quot第三行前个字反白quoteak;case:con_dis(w,w,x,x,,);quot第四行前个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行后个字反白quoteak;case:con_dis(w,w,xd,x,,);quot第三行后个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,xb,x,,);quot第三行第个字反白quoteak;。e(b=,);eak;}eak;case:switch(key){case:if(!b){Readage(set_rtc_code,address,);Readage(wet,addressx,);}clean();showall(i+=b);if(b)choose(,);i++;b=;eak;case:showall(i);choose(b+,);if(b)b=;elseb=;choose(b+,);eak;case:showall(i);choose(b+,);if(b)b=;elseb=;choose(b+,);eak;case:i=;德州学院物理系届电子信息科学与技术专业毕业设计clean();showall(i);choose(b=,);eak;}eak;case:if(key==){b=i=m=;menu();eak;}elseif(key==){b=;i=;clean();showall();choose(,);eak;}eak;case:switch(key){case:draw(b);i++;eak;case:showall(i);choose(b,);b++;if(bgt)b=;choose(b,);eak;case:showall(i);choose(b,);if(!b)b=;b;choose(b,);eak;case:b=;i=;clean();showall();choose(,);eak;}eak;case:if(key==)德州学院物理系届电子信息科学与技术专业毕业设计{b=i=m=;menu();eak;}elseif(key==){i=;clean();showall();choose(b,);eak;}eak;case:if(key==){fuwei();ok();}elseif(key==){i=;clean();showall(i);choose(b=,);eak;}eak;}}voidzi()quot用于自动操控quot{bitq,,r;switch(k){case:q=((set_rtc。

9、);wet[]=time[];change();chn_dis_(xd,,,show);eak;case:chn_dis(x,,quot光强范围quot);wet[]=time[];change();chn_dis_(x,,,show);wet[]=time[];change();chn_dis_(xd,,,show);eak;case:chn_dis(x,,quot模式设置quot);chn_dis(x,,quot自动补偿quot);chn_dis(x,,quot手动补偿quot);chn_dis(x,,quot定时补偿quot);德州学院物理系届电子信息科学与技术专业毕业设计eak;case:chn_dis(x,,quot定时补偿quot);chn_dis(x,,quot从quot);change();chn_dis(x,,show);chn_dis(x,,quot到quot);change();chn_dis(xd,,show);chn_dis(x,,quot确定quot);eak;case:chn_dis(x,,quot记录处理quot);chn_dis(x,,quot上次记录quot);chn_dis(x,,quot作图quot);chn_dis(x,,quot确定quot);eak;case:chn_dis(x,,quot上次记录quot);。

8、set_rtc_code[b]++;if((set_rtc_code[b]amxf)gt)set_rtc_code[b]+=;if(set_rtc_code[b]gtx)set_rtc_code[b]=;eak;case:set_rtc_code[]++;if(set_rtc_code[]gt)set_rtc_code[]=;eak;}}voidfuwei()quot复位函数,用于将系统恢复b=;choose((b)*++b,);eak;case:switch(b){case:time[]++;if(time[]gtx)time[]=;if((time[]amxf)gt)time[]+=;eak;case:time[]++;if(time[]gtx)time[]=;德州学院物理系届电子信息科学与技术专业毕业设计if((time[]amxf)gt)time[]+=;eak;case:time[]++;if(time[]gtx)time[]=;if((time[]amxf)gt)time[]+=;eak;case:time[]++;if(time[]gtx)time[]=;if((time[]amxf)gt)time[]+=;eak;}showall();choose((b)*++b,);eak;case:i=;clean();showall(i);choo。ase:con_dis(w,w,xd,x,,);quot第三行第个字反白quoteak;case:con_dis(w,w,xf,x,,);quot第三行第个字反白quoteak;case:con_dis(w,w,xc,x,,);quot第四行第个字反白quoteak;}}voidsend()quot数据从串口送入计算机quot{;**}德州学院物理系届电子信息科学与技术专业毕业设计voidwriteall()quot数据写入RAMquot{Writeage(set_rtc_code,address,);Writeage(wet,address+x,);quot记录数据quotaddress+=xa;if(addressgtxf){send();quot写满送入串口quotaddress=x;}}voidrecord()quot将参量写入RAMquot{Writeage(time,,);Writeage(time,,);}voidok()quot显示设置已保存quot{showall();delay();b=i=m=;menu();}voidadd(unsignedcharb)quot调整时间quot{switch(b){case:set_rtc_code[]++;if((set_rtc_code[]amxf)gt)set_rtc_code[]+=;if((set_rtc_code[]amxf)gtxf)set_rtc_code[]=;eak;case:set_rtc_code[]++;if((set_rtc_code[]amxf)gt)set_rtc_code[]+=;if(set_rtc_code[]gtx)set_rtc_code[]=;eak;case:set_rtc_code[]++;if((set_rtc_code[]amxf)gt)set_rtc_code[]+=;if(set_rtc_code[]gtx)set_rtc_code[]=;switch(set_rtc_code[]){case:case:case:cas。

7、set_rtc_code[]amxf)gtxf)set_rtc_code[]=;eak;case:set_rtc_code[]++;if((set_rtc_code[]amxf)gt)set_rtc_code[]+=;if(set_rtc_code[]gtx)set_rtc_code[]=;eak;case:set_rtc_code[]++;if((set_rtc_code[]amxf)gt)set_rtc_code[]+=;if(set_rtc_code[]gtx)set_rtc_code[]=;switch(set_rtc_code[]){case:case:case:casex:if(set_rtc_code[]gtx)set_rtc_code[]=;eak;case:if(set_rtc_code[]gtx)set_rtc_code[]=;if((set_rtc_code[]%)%)if(set_rtc_code[]gtx)set_rtc_code[]=;eak;}eak;case:set_rtc_code[]++;if((set_rtc_code[]amxf)gt)set_rtc_code[]+=;德州学院物理系届电子信息科学与技术专业毕业设计if(set_rtc_code[]gtx)set_rtc_code[]=;eak;case:case:。

6、et[]gttime[]);if(||q)li=;elseli=;lightq=(wet[]time[]);if(||q)mo=;**elsemo=;quotCOquot}}voidmain()quot主函数quot{unsignedcharb=;co=;cs=;delay();IE=x;TCON=x;IP=x;TMOD=x;TH=xc;TL=xb;init_lcd();wr_lcd(comm,x);wr_lcd(comm,x);delay();led=;welcome();delay();m=;delay();Readage(time,,);quot读取参考值quotReadage(time,,);k=ReadC(xff);g=ReadC(xfe);z();delay();m=;delay();i=key=m=;showall();showall();writeall();zi();while(){if(key)德州学院物理系届电子信息科学与技术专业毕业设计{menu();key=key=key=key=;key=;}}}voidexint()interrutquot外部中断,扫描按键quot{led=;if(!key)key=;elseif(!key)key=;elseif(!key)key=;elseif(!key)key=;elsekey=;m=。

#p#分页标题#e#

5、change();chn_dis(x,,show);change();chn_dis_(x,,,show);change();chn_dis_(xd,,,show);change();chn_dis_(x,,,show);change();chn_dis_(xd,,,show);eak;case:chn_dis(x,,quot湿度作图quot);chn_dis(x,,quot温度作图quot);chn_dis_(x,,,quotCOquot);chn_dis(xa,,quot浓度quot);chn_dis(x,,quot光强作图quot);eak;case:chn_dis(x,,quot确定将系统quot);chn_dis(x,,quot恢复初始状态quot);chn_dis_(x,,,quot?quot);chn_dis(x,,quot确定quot);eak;case:clean();chn_dis(x,,quot设置已保存quot);eak;}if((lta)amam(alt)){chn_dis(x,,quot最高quot);德州学院物理系届电子信息科学与技术专业毕业设计chn_dis(x,,quot最低quot);chn_dis(x,,quot确定quot);}if(a%)chn_dis(xe,,quot返回quot);}voidchoose(un。ex:if(set_rtc_code[]gtx)set_rtc_code[]=;eak;case:if(set_rtc_code[]gtx)set_rtc_code[]=;if((set_rtc_code[]%)%)if(set_rtc_code[]gtx)set_rtc_code[]=;eak;}eak;case:set_rtc_code[]++;if((set_rtc_code[]amxf)gt)set_rtc_code[]+=;德州学院物理系届电子信息科学与技术专业毕业设计if(set_rtc_code[]gtx)set_rtc_code[]=;eak;case:case:set_rtc_code[b]++;if((set_rtc_code[b]amxf)gt)set_rtc_code[b]+=;if(set_rtc_code[b]gtx)set_rtc_code[b]=;eak;case:set_rtc_code[]++;if(set_rtc_code[]gt)set_rtc_code[]=;eak;}}voidfuwei()quot复位函数,用于将系统恢复b=;choose((b)*++b,);eak;case:switch(b){case:time[]++;if(time[]gtx)time[]=;if((time[]amxf)gt)time[]+=;eak;case:time[]++;if(time[]gtx)time[]=;德州学院物理系届电子信息科学与技术专业毕业设计if((time[]amxf)gt)time[]+=;eak;case:time[]++;if(time[]gtx)time[]=;if((time[]amxf)gt)time[]+=;eak;case:time[]++;if(time[]gtx)time[]=;if((time[]amxf)gt)time[]+=;eak;}showall();choose((b)*++b,);eak;case:i=;clean();showall(i);choos。

4、;}voidcomare(){unsignedcharqd=;while(qdmax[qd]){min[qd]=max[qd];min[qd+]=max[qd+];}elseif(wet[qd]=max[qd]){if(wet[qd+]gtmax[qd+])max[qd+]=wet[qd+];}qd++;}while(qdmax[qd]){max[qd]=wet[qd];}qd++;德州学院物理系届电子信息科学与技术专业毕业设计}}voidtime()interrutquot定时中断quot{TH=xc;TL=xb;m++;l++;if(mgt=)quotsquot{led=;quot关闭背灯quotwr_lcd(comm,x);quot睡眠quotb=i=m=;}if(lgt=){j++;l=;if(jgt=(*g))quotmin读一次数据quot{readall();writeall();comare();zi();j=;}}}初始状态quot{unsignedcharysh[];ysh[]=+'';ysh[]='';Writeage(ysh,xfe,);k=;g=;}voiddraw(unsignedcharqd)quot画图函数quot{unsignedcharqe,qr;unsignedintqw,qq,q;clean();switch(qd。

3、((b)*+,);b=;eak;case:showall(i);choose(b,);b++;if(bgt)b=;choose(b,);eak;case:showall(i);choose(b,);if(!b)b=;b;德州学院物理系届电子信息科学与技术专业毕业设计choose(b,);eak;case:i=;menu();eak;}eak;case:switch(key){case:clean();if(!b)s=g;showall((i++)+b);if(bgt)choose(,);elsechoose(,);i+=b;b=;eak;case:choose((b%)+,);b++;if(bgt)b=;showall(i+(b)*);choose((b%)+,);eak;case:choose((b%)+,);if(!b)b=;b;showall(i+(b)*);choose((b%)+,);eak;case:i;clean();showall(i);choose(b=,);eak;}eak;case:switch(key){case:g=s;WriteC(g,xfe);ok();eak;case:if(s)s=;德州学院物理系届电子信息科学与技术专业毕业设计elseif(sgt)s=;elseif(sgt)s;showall();eak;case:i。uot确定将系统quot);chn_dis(x,,quot恢复初始状态quot);chn_dis_(x,,,quot?quot);chn_dis(x,,quot确定quot);eak;case:clean();chn_dis(x,,quot设置已保存quot);eak;}if((lta)amam(alt)){chn_dis(x,,quot最高quot);德州学院物理系届电子信息科学与技术专业毕业设计chn_dis(x,,quot最低quot);chn_dis(x,,quot确定quot);}if(a%)chn_dis(xe,,quot返回quot);}voidchoose(unsignedchara,unsignedcharw)quot反白quot{w=(xff)*w;switch(a){case:con_dis(w,w,x,x,,);quot第一行前个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行前个字反白quoteak;case:con_dis(w,w,x,x,,);quot第三行前个字反白quoteak;case:con_dis(w,w,x,x,,);quot第四行前个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行后个字反白quoteak;case:con_dis(w,w,xd,x,,);quot第三行后个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,x,x,,);quot第二行第个字反白quoteak;case:con_dis(w,w,xb,x,,);quot第三行第个字反白quoteak;c。

2、lean();showall();choose(,);eak;}eak;case:if(key==)德州学院物理系届电子信息科学与技术专业毕业设计{b=i=m=;menu();eak;}elseif(key==){i=;clean();showall();choose(b,);eak;}eak;case:if(key==){fuwei();ok();}elseif(key==){i=;clean();showall(i);choose(b=,);eak;}eak;}}voidzi()quot用于自动操控quot{bitq,,r;switch(k){case:q=((set_rtc_code[]time[]));=((set_rtc_code[]==time[])amam(set_rtc_code[]=time[]));if(!(||q||r))eak;case:q=((wet[]time[]));=((wet[]==time[])amam(wet[]gttime[]));r=((wet[]==time[])amam(wet[]time[]));q=((wet[]==time[])amam(wet[]time[]));if(||q||r)li=;temelseli=;**q=(wet[]lttime[]);德州学院物理系届电子信息科学与技术专业毕业设计=(。

1、ase:con_dis(w,w,xd,x,,);quot第三行第个字反白quoteak;case:con_dis(w,w,xf,x,,);quot第三行第个字反白quoteak;case:con_dis(w,w,xc,x,,);quot第四行第个字反白quoteak;}}voidsend()quot数据从串口送入计算机quot{;**}德州学院物理系届电子信息科学与技术专业毕业设计voidwriteall()quot数据写入RAMquot{Writeage(set_rtc_code,address,);Writeage(wet,address+x,);quot记录数据quotaddress+=xa;if(addressgtxf){send();quot写满送入串口quotaddress=x;}}voidrecord()quot将参量写入RAMquot{Writeage(time,,);Writeage(time,,);}voidok()quot显示设置已保存quot{showall();delay();b=i=m=;menu();}voidadd(unsignedcharb)quot调整时间quot{switch(b){case:set_rtc_code[]++;if((set_rtc_code[]amxf)gt)set_rtc_code[]+=;if(。更多相关《基于物联网技术的温室大棚操控系统设计(最终稿)》请在上搜索

当前资源信息


编号:2445
类型: 共享资源
格式: DOCX

点击下载