完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
|
相关推荐
|
|
死企鹅企鹅企鹅去热情让全球人气人气
|
|
|
|
|
|
我是初学者,想问问有木有这程序的文字说明,跪求啊
|
|
|
|
|
|
xiexiexiexiexiexiexiexie |
|
|
|
|
|
#include
#define uchar unsigned char #define uint unsigned int ***it RED_A=P0^0; ***it YELLOW_A=P0^1; ***it GREEN_A=P0^2; ***it RED_B=P0^3; ***it YELLOW_B=P0^4; ***it GREEN_B=P0^5; uchar Flash_Count = 0; Operation_Type = 1; void DelayMS(uint x) { uchar t; while(x--) { for(t=120;t>0;t--); } } void Traffic_lignt() { switch(Operation_Type) { case 1: RED_A=1;YELLOW_A=1;GREEN_A=0; RED_B=0;YELLOW_B=1;GREEN_B=1; DelayMS(2000); Operation_Type = 2; break; case 2: DelayMS(200); YELLOW_A=~YELLOW_A; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 3; break; case 3: RED_A=0;YELLOW_A=1;GREEN_A=1; RED_B=1;YELLOW_B=1;GREEN_B=0; DelayMS(2000); Operation_Type = 4; break; case 4: DelayMS(200); YELLOW_B=~YELLOW_B; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 1; break; } } void main() { while(1) { Traffic_lignt(); } } #include #define uchar unsigned char #define uint unsigned int ***it RED_A=P0^0; ***it YELLOW_A=P0^1; ***it GREEN_A=P0^2; ***it RED_B=P0^3; ***it YELLOW_B=P0^4; ***it GREEN_B=P0^5; uchar Flash_Count = 0; Operation_Type = 1; void DelayMS(uint x) { uchar t; while(x--) { for(t=120;t>0;t--); } } void Traffic_lignt() { switch(Operation_Type) { case 1: RED_A=1;YELLOW_A=1;GREEN_A=0; RED_B=0;YELLOW_B=1;GREEN_B=1; DelayMS(2000); Operation_Type = 2; break; case 2: DelayMS(200); YELLOW_A=~YELLOW_A; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 3; break; case 3: RED_A=0;YELLOW_A=1;GREEN_A=1; RED_B=1;YELLOW_B=1;GREEN_B=0; DelayMS(2000); Operation_Type = 4; break; case 4: DelayMS(200); YELLOW_B=~YELLOW_B; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 1; break; } } void main() { while(1) { Traffic_lignt(); } } #include #define uchar unsigned char #define uint unsigned int ***it RED_A=P0^0; ***it YELLOW_A=P0^1; ***it GREEN_A=P0^2; ***it RED_B=P0^3; ***it YELLOW_B=P0^4; ***it GREEN_B=P0^5; uchar Flash_Count = 0; Operation_Type = 1; void DelayMS(uint x) { uchar t; while(x--) { for(t=120;t>0;t--); } } void Traffic_lignt() { switch(Operation_Type) { case 1: RED_A=1;YELLOW_A=1;GREEN_A=0; RED_B=0;YELLOW_B=1;GREEN_B=1; DelayMS(2000); Operation_Type = 2; break; case 2: DelayMS(200); YELLOW_A=~YELLOW_A; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 3; break; case 3: RED_A=0;YELLOW_A=1;GREEN_A=1; RED_B=1;YELLOW_B=1;GREEN_B=0; DelayMS(2000); Operation_Type = 4; break; case 4: DelayMS(200); YELLOW_B=~YELLOW_B; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 1; break; } } void main() { while(1) { Traffic_lignt(); } } #include #define uchar unsigned char #define uint unsigned int ***it RED_A=P0^0; ***it YELLOW_A=P0^1; ***it GREEN_A=P0^2; ***it RED_B=P0^3; ***it YELLOW_B=P0^4; ***it GREEN_B=P0^5; uchar Flash_Count = 0; Operation_Type = 1; void DelayMS(uint x) { uchar t; while(x--) { for(t=120;t>0;t--); } } void Traffic_lignt() { switch(Operation_Type) { case 1: RED_A=1;YELLOW_A=1;GREEN_A=0; RED_B=0;YELLOW_B=1;GREEN_B=1; DelayMS(2000); Operation_Type = 2; break; case 2: DelayMS(200); YELLOW_A=~YELLOW_A; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 3; break; case 3: RED_A=0;YELLOW_A=1;GREEN_A=1; RED_B=1;YELLOW_B=1;GREEN_B=0; DelayMS(2000); Operation_Type = 4; break; case 4: DelayMS(200); YELLOW_B=~YELLOW_B; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 1; break; } } void main() { while(1) { Traffic_lignt(); } } #include #define uchar unsigned char #define uint unsigned int ***it RED_A=P0^0; ***it YELLOW_A=P0^1; ***it GREEN_A=P0^2; ***it RED_B=P0^3; ***it YELLOW_B=P0^4; ***it GREEN_B=P0^5; uchar Flash_Count = 0; Operation_Type = 1; void DelayMS(uint x) { uchar t; while(x--) { for(t=120;t>0;t--); } } void Traffic_lignt() { switch(Operation_Type) { case 1: RED_A=1;YELLOW_A=1;GREEN_A=0; RED_B=0;YELLOW_B=1;GREEN_B=1; DelayMS(2000); Operation_Type = 2; break; case 2: DelayMS(200); YELLOW_A=~YELLOW_A; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 3; break; case 3: RED_A=0;YELLOW_A=1;GREEN_A=1; RED_B=1;YELLOW_B=1;GREEN_B=0; DelayMS(2000); Operation_Type = 4; break; case 4: DelayMS(200); YELLOW_B=~YELLOW_B; if(++Flash_Count !=10) return; Flash_Count=0; Operation_Type = 1; break; } } void main() { while(1) { Traffic_lignt(); } } |
|
|
|
|
|
不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!
不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! 不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!!不错!!!! |
|
|
|
|
|
1145 浏览 1 评论
用udl里的字符串信息在局域网内其他电脑连接sql数据库为什么为出现连接失败拒绝访问?
2024 浏览 2 评论
为什么同一个队列引用的全局变量,运行在两个子vi中发现队列数据丢失了
1646 浏览 0 评论
1839 浏览 0 评论
关于labview2024版本的lvanlys.dll出错的问题
4379 浏览 3 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-29 10:28 , Processed in 0.657664 second(s), Total 53, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号