为您找到约 223 条结果,搜索耗时:0.0105秒

非常形象的交通灯控制设计

...****/ void EXINT0(void)interrupt 0 using 1 { EX0=0; //关中断 if(Add_Button==0) //时间加        {              EW1+=5;             SN1+=5;               if(EW1&...

工作门户项目

...击下方链接下载附件。<?php session_start(); ?> <?php if(isset($_SESSION['name'])) {  include('dbconnection.php');       if(isset($_POST['sbt']))        {      $qry=mysql_query(" select password...

Linux驱动学习

....h> #include <asm/uaccess.h> #include "ldd.h" #include "globalfifo.h" static int globalfifo_major = GLOBALFIFO_MAJOR; static struct globalfifo_dev *globalfifo_devp; static int globalfifo_open(struct inode *inodep, struct file *filp) {     filp->private_data = conta...

Micopython视觉识别

...;   for blob in blobs:        if blob[2]*blob[3] > max_size:            max_blob=blob            max_size = blob[2]*blob[3]   &...

智能温控器

...******/ void WriteCommandLCM(uchar WCLCM,uchar BusyC) {     if(BusyC)lcd_wait(); DATAPORT=WCLCM;     LCM_RS=0;                   // 选中指令寄存器     LCM_RW=0;            &n...

pat甲级真题训练代码

...   cout << s[i];        if((l-1-i)%3==0&&(l-1-i)!=0&&s[i]!='-') cout << ',';    }    return 0;}#include<iostream>#include<iomanip>using namespace std;int main(){    doubl...

数字温度传感器DS18B20应用

...置函数 TL0 = (65536-2000)%256;   //TL0重置函数 cp1++; if(cp1>=500)   //1秒 { cp1 = 0; temp_num = Read_Temperature();   //将读取到的温度赋值给temp_num temp_dot = c * 0.625;    //得到温度的小数 if((temp_num&0x80)=...

实时时钟DS1302应用

... TL0 = (65536 - 2000) % 256;   //TL0重置函数 cp1++; if(cp1 >= 250) //0.5秒 { cp1 = 0; flash = ~flash; //产生闪烁变量 cp2++; if(cp2 >= 5) {   cp2 = 0; conv = ~conv; //产生交替显示变量 ...

AVR寻迹小车

...; LM=1;//左右两个电机同时启动,直线前进 while(1) { if((R==1)&&(M==1)&&(L==0))//小车右偏 { RM=1; LM=0;//左边的电机停止转动,右边的电机转动,这样就实现了左转 } if((R==0)&&(M==1)&&(L==1))//小...

卫星导航信号监测接收机仿真代码

... (chnlInst0[i]).TCAR.phs += (chnlInst0[i]).TCAR.fcw;   if ((chnlInst0[i]).TCAR.phs >= NCOTOTAL)    (chnlInst0[i]).TCAR.phs -= NCOTOTAL;   (chnlInst0[i]).TPRN.phs += (chnlInst0[i]).TPRN.fcw;   if ((chnlInst0[i]).TPRN.phs >= N...

微信捐赠

微信扫一扫体验

立即
上传
返回
顶部