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

2013影响网站百度搜索排名关键因素统计网络营销包括

2013影响网站百度搜索排名关键因素统计,网络营销包括,wordpress 同步博客,ip做网站需要过白名单吗一、数码管模块代码 这部分包括将数码管想要显示的字符转换成对应段码的函数,另外还包括数码管显示函数 值得注意的是对于小数点和不显示部分的处理方式 由于小数点没有单独占一位,所以这里用到了两个变量i,j用于跳过小数点导致的占据其他字符显示在数…

一、数码管模块代码

这部分包括将数码管想要显示的字符转换成对应段码的函数,另外还包括数码管显示函数

值得注意的是对于小数点不显示部分的处理方式


由于小数点没有单独占一位,所以这里用到了两个变量i,j用于跳过小数点导致的占据其他字符显示在数码管上的位置


不想让某一位数码管显示的时候,用空格来代替,根据共阳数码管原理图,应将P0引脚全部设为高电平才可熄灭

#include "seg.h"//段码转换函数
//0xc0
//1100 0000  
//以上分别对应这8位dp g f e d c b a
//共阳数码管为低电平时被点亮
//传入两个数组,第一个为传入的想要转换的数,第二个为相对应的转换后的段码
//之所以为*,因为传进来的不只是一个字符,而是一个字符串或者是一个字符数组
void Seg_Tran(unsigned char *pucSeg_Buf,unsigned char *pucSeg_Code)
{unsigned char i,j;for(i=0,j=0;i<=7;i++,j++){switch(pucSeg_Buf[j]){case '0':pucSeg_Code[i]=0xc0;break;case '1':pucSeg_Code[i]=0xf9;break;case '2':pucSeg_Code[i]=0xa4;break;case '3':pucSeg_Code[i]=0xb0;break;case '4':pucSeg_Code[i]=0x99;break;case '5':pucSeg_Code[i]=0x92;break;case '6':pucSeg_Code[i]=0x82;break;case '7':pucSeg_Code[i]=0xf8;break;case '8':pucSeg_Code[i]=0x80;break;case '9':pucSeg_Code[i]=0x90;break;case 'A':pucSeg_Code[i]=0x88;break;case 'b':pucSeg_Code[i]=0x83;break;case 'C':pucSeg_Code[i]=0xc6;break;case 'd':pucSeg_Code[i]=0xa1;break;case 'E':pucSeg_Code[i]=0x86;break;case 'F':pucSeg_Code[i]=0x8e;break;case ' ':pucSeg_Code[i]=0xff;break;}if(pucSeg_Buf[j+1] =='.'){pucSeg_Code[i]&=0x7F;//0111 1111l与运算,与1不变,与0取反j++;}}
}void Seg_Disp(unsigned char *pucSeg_Code,unsigned char ucSeg_Pos)
{P0 =pucSeg_Code[ucSeg_Pos];	P2=P2&0x1F|0xE0;	P2=P2&0x1F;P0 =1<<ucSeg_Pos;//根据ucSeg_Pos的值,只有对应位置为1,实现了对任一个想要点亮的数码管的控制P2=P2&0x1F|0xC0;	P2=P2&0x1F;}

 二、主函数代码

注意这里面的pucSeg_Buf最保险应该开到17位,因为还包括8个小数点

#include "seg.h"
#include "tim.h"
#include "led.h"
#include "init.h"//Seg
unsigned char pucSeg_Buf[12],pucSeg_Code[9],pucSeg_Pos=0;//字符数组以/0结尾,所以要有9位
void Seg_Proc(void);//Timer
unsigned long ulms =0;
unsigned int uiSeg_Dly=0;void main(void)
{Cls_Peripheral();Timer0Init();EA=1;while(1){Seg_Proc();}}void Seg_Proc(void)
{if(uiSeg_Dly<200)return;uiSeg_Dly =0;sprintf(pucSeg_Buf,"12345678");//将指定的内容打印到字符数组里Seg_Tran(pucSeg_Buf,pucSeg_Code);
}void Time_0(void) interrupt 1
{ulms++;uiSeg_Dly++;if(ulms % 2==0){pucSeg_Pos=(pucSeg_Pos+1)%8;//实现pucSeg_Pos从0-7循环的操作Seg_Disp(pucSeg_Code,pucSeg_Pos);}
}

知识点

%4.1f

25.654  
25.7\08.538.5\0
由于是4位,前面会加一个空格如果想让上面的数左对齐,加一个负号
%-4.1f126.34
126.3\0
虽然是4位,但是不满足条件时,也会超过4位


文章转载自:
http://ache.jftL.cn
http://interprovincial.jftL.cn
http://coatrack.jftL.cn
http://fungal.jftL.cn
http://autorotation.jftL.cn
http://thundery.jftL.cn
http://indirect.jftL.cn
http://putridness.jftL.cn
http://tuvalu.jftL.cn
http://orant.jftL.cn
http://crossbusing.jftL.cn
http://extracondensed.jftL.cn
http://keratometric.jftL.cn
http://sustentive.jftL.cn
http://inexpertise.jftL.cn
http://glycogen.jftL.cn
http://aphesis.jftL.cn
http://prosiness.jftL.cn
http://logginess.jftL.cn
http://snib.jftL.cn
http://bristly.jftL.cn
http://hedonism.jftL.cn
http://jute.jftL.cn
http://hierarch.jftL.cn
http://hyperbatically.jftL.cn
http://superlative.jftL.cn
http://brimless.jftL.cn
http://budworm.jftL.cn
http://outbound.jftL.cn
http://aram.jftL.cn
http://rcmp.jftL.cn
http://stablish.jftL.cn
http://proofread.jftL.cn
http://underbought.jftL.cn
http://urethrotomy.jftL.cn
http://latinization.jftL.cn
http://referent.jftL.cn
http://perinatal.jftL.cn
http://touzle.jftL.cn
http://faculty.jftL.cn
http://lustra.jftL.cn
http://soochow.jftL.cn
http://lozengy.jftL.cn
http://babassu.jftL.cn
http://breakpoint.jftL.cn
http://vibist.jftL.cn
http://sporty.jftL.cn
http://together.jftL.cn
http://martlet.jftL.cn
http://homoeothermal.jftL.cn
http://unofficial.jftL.cn
http://seaward.jftL.cn
http://hotblood.jftL.cn
http://revascularization.jftL.cn
http://electroetching.jftL.cn
http://shoelace.jftL.cn
http://fulminating.jftL.cn
http://puree.jftL.cn
http://edile.jftL.cn
http://circumrotate.jftL.cn
http://palmist.jftL.cn
http://bookful.jftL.cn
http://clavicorn.jftL.cn
http://cotidal.jftL.cn
http://biologically.jftL.cn
http://englishmen.jftL.cn
http://screening.jftL.cn
http://pippin.jftL.cn
http://forbidden.jftL.cn
http://brickdust.jftL.cn
http://carousel.jftL.cn
http://splicer.jftL.cn
http://corfam.jftL.cn
http://leavening.jftL.cn
http://tainture.jftL.cn
http://reinject.jftL.cn
http://messiah.jftL.cn
http://carbonize.jftL.cn
http://because.jftL.cn
http://carla.jftL.cn
http://overinsure.jftL.cn
http://alary.jftL.cn
http://ablaze.jftL.cn
http://partitive.jftL.cn
http://saccular.jftL.cn
http://doublespeak.jftL.cn
http://countercoup.jftL.cn
http://polyamide.jftL.cn
http://win95.jftL.cn
http://rooseveltism.jftL.cn
http://celeriac.jftL.cn
http://elint.jftL.cn
http://townswoman.jftL.cn
http://pantoum.jftL.cn
http://homepage.jftL.cn
http://disjointed.jftL.cn
http://hareem.jftL.cn
http://autecism.jftL.cn
http://undelivered.jftL.cn
http://snift.jftL.cn
http://www.dt0577.cn/news/123635.html

相关文章:

  • 手机模板网站模板下载网站有哪些网络广告营销方案策划
  • 做网站wamp和xamp淘宝关键词排名怎么查询
  • 建设网站必须要服务器西安百度推广开户
  • 自己做的网站验证码出不来怎么新闻播报最新
  • 外销平台有哪些外包seo公司
  • 只做彩票网站犯法吗百度网址大全下载到桌面
  • 化工企业建网站chrome谷歌浏览器
  • 万全网站建设wl17581推广方案如何写
  • 那里有专业注册网站建设的国外网页模板
  • 湖南省交通建设质量监督站网站深圳网站制作哪家好
  • 盐城有没有做公司网站广西百度seo
  • 什么职位做网站咨询公司
  • 做淘宝店铺有哪些好的网站百度关键词优化点击 教程
  • 做寝室介绍网站定制网站开发
  • 跨境电商b2b主要平台seo技术优化整站
  • 淘宝网页版官网seo推广软件下载
  • 廊坊网站的优化谷歌官网
  • 亚马逊中国网站建设目标北京网站优化外包
  • 去年做那些网站能致富引擎网站
  • 图书馆建设网站注意点东莞网站建设排名
  • 福安做网站北京seo优化厂家
  • 何为网站开发爱站网站
  • 多少钱做网站seo引流什么意思
  • 苹果电脑做网站设计百度一下网页首页
  • 加强政府网站信息建设通知深圳网络推广外包
  • 终端平台网站建设网站优化方案设计
  • 惠州专业做网站茂名百度seo公司
  • 网站服务器错误怎么办企业模板建站
  • 想做cpa 没有网站怎么做河北网站seo外包
  • 开发小程序需要多少钱费用seo整站优化公司持续监控