欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: Proteus學習單片機2-流水燈 [打印本頁]

作者: hemoparrot    時間: 2018-3-30 16:02
標題: Proteus學習單片機2-流水燈
電路圖:

代碼:
  1. #include <reg52.h>
  2. #include <intrins.h>
  3. #define uchar unsigned char
  4. #define uint unsigned int

  5. //延時
  6. void DelayMS(uint x)
  7. {
  8.         uchar i;
  9.         while(x--)
  10.         {
  11.                 for(i=0;i<120;i++);
  12.         }
  13. }
  14. void main()
  15. {
  16.         P0=0xfe;
  17.         while(1)
  18.         {
  19.                 P0=_crol_(P0,1);
  20.                 DelayMS(150);
  21.         }
  22. }
復制代碼







歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1