Lab1LEDControl.ppt


文档分类:资格/认证考试 | 页数:约18页 举报非法文档有奖
1/18
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/18
文档列表 文档介绍
Lab1:LEDControlZigbeXmotehasRed,Yellow,.**ZigbeXLED**LEDinZigbeXUseofLEDInordertocheckwhethercertaindevice’.**()–()-RedLEDOn. ()-RedLEDOFF. ()-()-GreenLEDOn. ()-GreenLEDOFF. ()-()-YellowLEDOn. ()-YellowLEDOFF. ()-YellowLEDtoggling.**LEDsampleprogam**ponentnamed“Blink”.Forconfigurationandmodule,&:\Programfiles\UCB\cygwin\opt\tinyos‐\contrib\zigbex\Blink\&**,LedSc,{}implementation{    componentsMain,BlinkM,LedsC;    ‐>;     ‐>LedsC;                }**(1)moduleBlinkM{  provides{    interfaceStdControl;  }  uses{  interfaceLeds;  }}implementation{  taskvoidled_task();  (){     ();     ESS;  }-declaredby“provide”interfaceand“uses”interfaceInimplementationblockisforuserprogrammingtask(functionw/oparameter):declarationStdControlinit(),start(),stop()sequence.-()()toinitializeLedsC.**((){     postled_task();       ESS;  }  (){     ESS;  }  taskvoidled_task(){     inti;     for(i=0;i<10;i++){       ();       TOSH_uwait(30000);        ();      }  }}(),()(),definedby“task”led_task()iscalledby“post”header.-Nospecificimplemet

Lab1LEDControl 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数18
  • 收藏数0 收藏
  • 顶次数0
  • 上传人阳仔仔
  • 文件大小398 KB
  • 时间2020-09-22
最近更新