广州隔离八个一,从兰州去广州晚上七点到广州站汽车站有没有发往中山城东汽车站
来源:整理 编辑:广州生活 2023-05-12 17:36:05
1,从兰州去广州晚上七点到广州站汽车站有没有发往中山城东汽车站
广州火车站隔离的省汽车站是晚上八点半最后一班来中山
你只要在微信上面搜索那个隔离,就可以查询到隔离的信息,很全面的都会有在里面可以显示出来。
3,单片机实验利用定时器控制八个LED灯每隔1S每四个为一组轮流点亮
03 8只LED左右来回点亮/* 名称:8只LED左右来回点亮 说明:程序利用循环移位函数_crol_和_cror_形成来回滚动的效果*/#include<reg51.h>#include<intrins.h>#define uchar unsigned char#define uint unsigned int//延时void DelayMS(uint x) uchari; while(x--) for(i=0;i<120;i++); }}//主程序void main() uchari; P2=0x01; while(1) for(i=0;i<7;i++) P2=_crol_(P2,1);//P2的值向左循环移动 DelayMS(150); } for(i=0;i<7;i++) P2=_cror_(P2,1);//P2的值向右循环移动 DelayMS(150); } }}04 花样流水灯/* 名称:花样流水灯 说明:16只LED分两组按预设的多种花样变换显示*/#include<reg51.h>#define uchar unsigned char#define uint unsigned intuchar code Pattern_P0[]= 0xfc,0xf9,0xf3,0xe7,0xcf,0x9f,0x3f,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xe7,0xdb,0xbd,0x7e,0xbd,0xdb,0xe7,0xff,0xe7,0xc3,0x81,0x00,0x81,0xc3,0xe7,0xff, 0xaa,0x55,0x18,0xff,0xf0,0x0f,0x00,0xff,0xf8,0xf1,0xe3,0xc7,0x8f,0x1f,0x3f,0x7f, 0x7f,0x3f,0x1f,0x8f,0xc7,0xe3,0xf1,0xf8,0xff,0x00,0x00,0xff,0xff,0x0f,0xf0,0xff, 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe, 0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xc0,0xe0,0xf0,0xf8,0xfc,0xfe, 0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff};uchar code Pattern_P2[]= 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xf9,0xf3,0xe7,0xcf,0x9f,0x3f,0xff, 0xe7,0xdb,0xbd,0x7e,0xbd,0xdb,0xe7,0xff,0xe7,0xc3,0x81,0x00,0x81,0xc3,0xe7,0xff, 0xaa,0x55,0x18,0xff,0xf0,0x0f,0x00,0xff,0xf8,0xf1,0xe3,0xc7,0x8f,0x1f,0x3f,0x7f, 0x7f,0x3f,0x1f,0x8f,0xc7,0xe3,0xf1,0xf8,0xff,0x00,0x00,0xff,0xff,0x0f,0xf0,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f, 0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00, 0x00,0x80,0xc0,0xe0,0xf0,0xf8,0xfc,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff};//延时void DelayMS(uint x) uchari; while(x--) for(i=0;i<120;i++); }}//主程序void main() uchari; while(1) for(i=0;i<136;i++) P0=Pattern_P0[i]; P2=Pattern_P2[i]; DelayMS(100); } }}05 LED模拟交通灯/* 名称:LED模拟交通灯 说明:东西向绿灯亮若干秒,黄灯闪烁5次后红灯亮, 红灯亮后,南北向由红灯变为绿灯,若干秒后南北向黄灯闪烁5此后变红灯,东西向变绿灯,如此重复。*/#include<reg51.h>#define uchar unsigned char#define uint unsigned intsbit RED_A=P0^0; //东西向灯sbit YELLOW_A=P0^1;sbit GREEN_A=P0^2;sbit RED_B=P0^3; //南北向灯sbit YELLOW_B=P0^4;sbit GREEN_B=P0^5;uchar Flash_Count=0,Operation_Type=1; //闪烁次数,操作类型变量//延时void DelayMS(uint x) uchari; while(x--)for(i=0;i<120;i++);}//交通灯切换void Traffic_Light() switch(Operation_Type) case1: //东西向绿灯与南北向红灯亮 RED_A=1;YELLOW_A=1;GREEN_A=0; RED_B=0;YELLOW_B=1;GREEN_B=1; DelayMS(2000); Operation_Type=2; break; case2: //东西向黄灯闪烁,绿灯关闭 DelayMS(300); YELLOW_A=~YELLOW_A;GREEN_A=1; if(++Flash_Count!=10)return; //闪烁5次 Flash_Count=0; Operation_Type=3; break; case3: //东西向红灯,南北向绿灯亮 RED_A=0;YELLOW_A=1;GREEN_A=1; RED_B=1;YELLOW_B=1;GREEN_B=0; DelayMS(2000); Operation_Type=4; break; case4: //南北向黄灯闪烁5次 DelayMS(300); YELLOW_B=~YELLOW_B;GREEN_B=1; if(++Flash_Count!=10)return; Flash_Count=0; Operation_Type=1; }}//主程序void main() while(1)Traffic_Light();}06 单只数码管循环显示0~9/* 名称:单只数码管循环显示0~9 说明:主程序中的循环语句反复将0~9的段码送至P0口,使数字0~9循环显示*/#include<reg51.h>#include<intrins.h>#define uchar unsigned char#define uint unsigned intuchar codeDSY_CODE[]=//延时void DelayMS(uint x) uchart; while(x--)for(t=0;t<120;t++);}//主程序void main() uchari=0; P0=0x00; while(1) P0=~DSY_CODE[i]; i=(i+1)%10; DelayMS(300); }};给你做一个单双各四个灯轮流点亮的程序吧,P0口#include<reg51.h>#define uchar unsigned charuchar num=0;void t0isr() interrupt 1TH0=(65536-50000)/256;TL0=(65536-50000)%256;num++;if(num>=20) P0=~P0; num=0; }}main()TMOD=0x01;TH0=(65536-50000)/256;TL0=(65536-50000)%256;TR0=1;EA=1;P0=0x5a;while(1);}单片机的种类型号五花八门,单片机的定时器模型又五花八门,你的电路是LED高电平点亮还是低电平点亮又没说,所以。。答案=无解, 不知道你要问什么。很简单的功能,你口述一下你单片机型号,硬件连图,还有其他需求。马上就能出程序
文章TAG:
广州 隔离 八个 兰州 广州隔离八个一
大家都在看
-
宁波大众4s店途昂多少钱,大众途昂落地多少钱
2022-07-14
-
青岛低成本精准营销短信多少钱,短信营销如何节约成本
2022-07-14
-
江门哪里收购蜂蜜,哪有收购蜂蜜的
2022-07-15
-
威海艾滋病患者有多少,中国的艾滋病患者是否很多
2022-07-15
-
2020山东高考分数线大约多少,2022年高考已经结束了
2022-07-15
-
金华房屋空置率多少,高达25%的房屋空置率下
2022-07-15
-
济南一个月收入多少万,月收入2到3万
2022-07-15
-
菏泽有多少人跑货拉拉,改行跑货拉拉了
2022-07-15
-
怎么样备考广东乡镇公务员,广东乡镇公务员和广东省考
2022-07-15
-
杭州家庭年收入多少生二胎,年收入多少能要二胎
2022-07-16
-
丽水开元酒席多少一桌,农村流水席一桌多少钱
2022-07-16
-
深圳租客不付房租不搬走怎么办,如果你的租客
2022-07-16
-
山东淄博打工一天多少钱,去山东淄博打工
2022-07-16
-
东营平均寿命是多少岁,有多少人能活到70岁
2022-07-16
-
江门兼职滴滴代驾怎么样,滴滴代驾全职好
2022-07-16