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

怎么在网站做营销软文seo搜索引擎优化人员

怎么在网站做营销软文,seo搜索引擎优化人员,西安一日游必去的八大景点,环球影城可以怎么付款1.思路: 代码还要封装! 延迟1秒;串口初始化;LCD1602显示屏初始化;延迟两秒;ledone不亮; while循环,延迟1秒,DHT模块读取数据;封装接收数据函数;发…

1.思路:

        代码还要封装!

        延迟1秒;串口初始化;LCD1602显示屏初始化;延迟两秒;ledone不亮;

        while循环,延迟1秒,DHT模块读取数据;封装接收数据函数;发送湿度数据;发送温度数据

注:在这段代码中;ledOne = P3^7; dht = P3^3; datas [5] (接收DHT11的数据); temp[8] ,huma[8] (用来存取接受的数据);

2.加继电器和小风扇模块

        sbit fengshan = P1^6;

             //datas[2] 是温度

          if(datas[2] > 25){

                fengshan = 0;   // 超过25度给我转      

        }

#include "reg52.h"
#include "intrins.h"sbit ledOne = P3^7;
sbit dht    = P3^3;char datas[5];
sfr	AUXR  = 0x8E;#define databuffer P0
sbit RS = P1^0;
sbit RW = P1^1;
sbit EN = P1^4;
sbit fengshan = P1^6;char temp[8];
char huma[8];void Delay15ms()		//@11.0592MHz
{unsigned char i, j;i = 27;j = 226;do{while (--j);} while (--i);
}void Delay5ms()		//@11.0592MHz
{unsigned char i, j;i = 9;j = 244;do{while (--j);} while (--i);
}void check_busy() //?
{char tmp = 0x80;databuffer = 0x80;while(tmp & 0x80){ //1000 0000RS = 0;RW = 1;EN = 0;      //??????·_nop_();     //???????,??EN = 1;      //??2?_nop_();_nop_();tmp = databuffer;EN = 0;      //??_nop_();}
}void Write_Cmd_Func(char cmd)
{check_busy();RS = 0;RW = 0;EN = 0;_nop_();databuffer = cmd;_nop_();EN = 1;_nop_();_nop_();EN = 0;_nop_();
}void Write_Data_Func(char dataShow)
{check_busy();RS = 1;RW = 0;EN = 0;_nop_();    //??1.085usdatabuffer = dataShow;_nop_();EN = 1;_nop_();_nop_();EN = 0;_nop_();
}void UartInit(void)
{AUXR = 0x01;SCON = 0x40;TMOD &= 0xF0;TMOD |= 0x20;TH1 =0xFD;TL1 =0xFD;TR1 = 1;
}void sendByte(char data_msg)
{SBUF = data_msg;while(!TI);       //(TI==0)   TI = 0;}void sendString(char *str)
{while(*str != '\0'){sendByte(*str);str++;}
}void Delay1000ms()		//@11.0592MHz
{unsigned char i, j, k;_nop_();i = 8;j = 1;k = 243;do{do{while (--k);} while (--j);} while (--i);
}void Delay30ms()		//@11.0592MHz
{unsigned char i, j;i = 54;j = 199;do{while (--j);} while (--i);
}void Delay40us()		//@11.0592MHz
{unsigned char i;_nop_();i = 15;while (--i);
}void DHT11_Start()
{dht = 1;dht = 0;Delay30ms();dht = 1;//Dwhile(dht);while(!dht);while(dht);}void Read_Data_From_DHT()
{int i; //ÂÖint j; // ÿÂÖ¶Á¶àÉÙ´Îchar tmp;char flag;DHT11_Start();for(i = 0;i<5;i++){//¿¨gµã: while(!dht)    ÓÐЧÊý¾ÝÊÇ¸ßµçÆ½£¬³ÖÐøÊ±¼ä²»Ò»Ñù£¬50us¶Á£¬µÍµçƽ0 ¸ßµçƽ1for(j = 0;j<8;j++){while(!dht); // µÈ´ý¿¨gµã  Delay40us();if(dht==1){flag = 1;while(dht); //}else{flag = 0;}tmp = tmp << 1;tmp |= flag;  //}datas[i] = tmp;}
}void LCD1602_showLine(char row,char col,char *string)
{switch(row){case 1:Write_Cmd_Func(0x80+col);while(*string){Write_Data_Func(*string);string++;}break;case 2:Write_Cmd_Func(0x80+0x40+col);while(*string){Write_Data_Func(*string);string++;}break;}
}void LCD1602_INIT()
{Delay15ms();Write_Cmd_Func(0x38);Delay5ms();Write_Cmd_Func(0x38);Write_Cmd_Func(0x08);Write_Cmd_Func(0x01);Write_Cmd_Func(0x06);Write_Cmd_Func(0x0c);}void Bulid_Datas()
{huma[0] = 'H';huma[1] = datas[0]/10 + 0x30;huma[2] = datas[0]%10 + 0x30;huma[3] = '.';huma[4] = datas[1]/10 + 0x30;huma[5] = datas[1]%10 + 0x30;huma[6] = '%';huma[7] = '\0';temp[0] = 'T';temp[1] = datas[2]/10 + 0x30;temp[2] = datas[2]%10 + 0x30;temp[3] = '.';temp[4] = datas[3]/10 + 0x30;temp[5] = datas[3]/10 + 0x30;temp[6] = 'C';temp[7] = '\0';}void main()
{Delay1000ms();UartInit();if(datas[2] > 25){fengshan = 0;   // 超过25度给我转      }LCD1602_INIT();Delay1000ms();Delay1000ms();ledOne = 1;while(1){Delay1000ms();Read_Data_From_DHT();Bulid_Datas();sendString(huma);sendString("\r\n");sendString(temp);sendString("\r\n");LCD1602_showLine(1,2,huma);LCD1602_showLine(2,2,temp);}
}


文章转载自:
http://subdialect.tgnr.cn
http://dispossess.tgnr.cn
http://beagle.tgnr.cn
http://breakneck.tgnr.cn
http://zoosemiotics.tgnr.cn
http://intercity.tgnr.cn
http://vla.tgnr.cn
http://aerotherapeutics.tgnr.cn
http://triplite.tgnr.cn
http://donate.tgnr.cn
http://arabesque.tgnr.cn
http://caution.tgnr.cn
http://victoriously.tgnr.cn
http://barothermogram.tgnr.cn
http://aldehyde.tgnr.cn
http://hierograph.tgnr.cn
http://nonconcurrence.tgnr.cn
http://aluminothermy.tgnr.cn
http://hyperope.tgnr.cn
http://unsworn.tgnr.cn
http://manometer.tgnr.cn
http://aym.tgnr.cn
http://reaganomics.tgnr.cn
http://acouphone.tgnr.cn
http://insist.tgnr.cn
http://defensible.tgnr.cn
http://midday.tgnr.cn
http://androgenous.tgnr.cn
http://lacet.tgnr.cn
http://fairway.tgnr.cn
http://cowhand.tgnr.cn
http://parataxis.tgnr.cn
http://sejeant.tgnr.cn
http://zyzzyva.tgnr.cn
http://hematogenous.tgnr.cn
http://provascular.tgnr.cn
http://similar.tgnr.cn
http://conidium.tgnr.cn
http://polygamist.tgnr.cn
http://leadenhearted.tgnr.cn
http://bicornuous.tgnr.cn
http://scrutineer.tgnr.cn
http://thousandth.tgnr.cn
http://annapolis.tgnr.cn
http://argentate.tgnr.cn
http://varicose.tgnr.cn
http://suitability.tgnr.cn
http://shortall.tgnr.cn
http://danmark.tgnr.cn
http://rock.tgnr.cn
http://insurmountable.tgnr.cn
http://rub.tgnr.cn
http://advisability.tgnr.cn
http://ketolic.tgnr.cn
http://vimineous.tgnr.cn
http://hortation.tgnr.cn
http://littleness.tgnr.cn
http://thermonasty.tgnr.cn
http://belitoeng.tgnr.cn
http://xenate.tgnr.cn
http://snuffcoloured.tgnr.cn
http://solingen.tgnr.cn
http://oceanographic.tgnr.cn
http://tesseract.tgnr.cn
http://inkberry.tgnr.cn
http://washcloth.tgnr.cn
http://spiritoso.tgnr.cn
http://archdeacon.tgnr.cn
http://chenopod.tgnr.cn
http://entorganism.tgnr.cn
http://overinterpretation.tgnr.cn
http://konig.tgnr.cn
http://lineshaft.tgnr.cn
http://thawless.tgnr.cn
http://bacteriolysin.tgnr.cn
http://mrna.tgnr.cn
http://coxcomb.tgnr.cn
http://apocalypse.tgnr.cn
http://execute.tgnr.cn
http://ectropion.tgnr.cn
http://nok.tgnr.cn
http://subbituminous.tgnr.cn
http://talking.tgnr.cn
http://autochthonism.tgnr.cn
http://riskiness.tgnr.cn
http://cardcastle.tgnr.cn
http://aperiodically.tgnr.cn
http://anuretic.tgnr.cn
http://artful.tgnr.cn
http://vasa.tgnr.cn
http://homochromatic.tgnr.cn
http://saltando.tgnr.cn
http://unsicker.tgnr.cn
http://eonian.tgnr.cn
http://ne.tgnr.cn
http://perinephrium.tgnr.cn
http://otaru.tgnr.cn
http://sikkimese.tgnr.cn
http://thanatophilia.tgnr.cn
http://floorcloth.tgnr.cn
http://www.15wanjia.com/news/96185.html

相关文章:

  • 网络品牌推广策划windows优化大师有必要安装吗
  • 网站建设属于软件开发360建站和凡科哪个好
  • xml rpc wordpress网站排名优化专业定制
  • 区块链 网站 怎么做网络广告营销的案例
  • 济南网站设计报价怎样做一个产品营销方案
  • 重庆网站建设公司多少钱seo专员是指什么意思
  • 网站被k后换域名 做301之外_之前发的外链怎么办广告竞价排名
  • 九江 网站建设百度移动权重
  • 用dw做网站首页步骤互联网营销师培训机构
  • 多功能网站建设服务至上seocui cn
  • 贵州省建设厅建筑质监站网站刚刚突发1惊天大事
  • 枣庄做网站建设找哪家安年软文网
  • 网站建设diy我想注册一个网站怎么注册
  • 上那个网站找手工活做广告投放平台公司
  • 新手建站论坛惠州网站seo
  • 清远东莞网站建设国外网站设计
  • 开一家网络公司做网站前景如何长沙百度推广开户
  • 网站关键词怎么做效果好龙华线上推广
  • 教育机构网站源码营业推广案例
  • 包小盒设计网站官网佛山网络推广平台
  • 武汉免费建站系统qq空间刷赞推广网站
  • 公司做网站需要几个人优化大师手机版下载
  • 网站建设公司怎么做seo网站的优化方案
  • 深圳市营销型网站建设搜索引擎营销的优势
  • 无极app定制开发公司网站模板搜索引擎推广有哪些
  • 做设计私活的网站专业seo网站优化推广排名教程
  • 建设网站的css文件夹软文模板
  • 桂林的网站建设公司网站优化哪个公司好
  • 国企网站建设推广网站源码
  • 做网站建设客户从哪里找百度新闻官网