⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 islappc.nc

📁 tinyos2.0版本驱动
💻 NC
字号:
/**
 * 本程序用于测试ISL29001光照传感器接口组件和I2C驱动
 * @author Lizm & Majy &  Dupl
 * @date 2008/09/27
 */


#include "ISL29001.h"


configuration ISLAppC
{
}
implementation
{
  components MainC, ISLC, LedsC;
  components new TimerMilliC() as Timer;
  components ISL29001ReaderC;

  ISLC -> MainC.Boot;

  components SerialActiveMessageC as AM;
  ISLC.SerialControl -> AM;
  ISLC.Packet -> AM;
  ISLC.AMSend -> AM.AMSend[AM_ISL_TESTING];
  
  ISLC.ISLReader -> ISL29001ReaderC.ISL29001Reader;

  ISLC.Timer -> Timer;
  ISLC.Leds -> LedsC;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -