📄 demosensornowc.nc
字号:
/**
* Demo sensor for the mica2 platform.
*
* @author Henrik Makitaavola <henrik.makitaavola@gmail.com>
*/
generic configuration DemoSensorNowC()
{
provides interface Resource;
provides interface ReadNow<uint16_t>;
}
implementation {
components new AdcReadNowClientC(),
DemoSensorP,
HplM16c62pGeneralIOC as IOs,
RealMainP;
DemoSensorP.Pin -> IOs.PortP100;
DemoSensorP.AVcc -> IOs.PortP76;
ReadNow = AdcReadNowClientC;
Resource = AdcReadNowClientC;
AdcReadNowClientC.M16c62pAdcConfig -> DemoSensorP;
RealMainP.PlatformInit -> DemoSensorP;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -