countsleepm.nc
来自「无线通信的主要编程软件,是无线通信工作人员的必备工具,关天相关教程我会在后续传上」· NC 代码 · 共 45 行
NC
45 行
// $Id: CountSleepM.nc,v 1.1 2004/05/29 21:07:17 jpolastre Exp $// @author Cory Sharp <cssharp@eecs.berkeley.edu>includes CountMsg;includes Timer;module CountSleepM{ provides interface StdControl; uses interface Timer; uses interface Leds; uses interface PowerManagement; uses command result_t Enable();}implementation{ command result_t StdControl.init() { call Leds.init(); return SUCCESS; } command result_t StdControl.start() { call Enable(); call Timer.start( TIMER_REPEAT, 50 ); call PowerManagement.adjustPower(); return SUCCESS; } command result_t StdControl.stop() { return SUCCESS; } event result_t Timer.fired() { call Leds.redToggle(); call PowerManagement.adjustPower(); return SUCCESS; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?