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

📄 readme

📁 tinyos2.0版本驱动
💻
字号:
TestAMOnOffThis application has two different versions, slave and master. Theversion compiled is determined by a compile-time flag (SERVICE_MASTERor SERVICE_SLAVE). To compile a master:  CFLAGS=-DSERVICE_MASTER make <platform> <other options>To compile a slave:  CFLAGS=-DSERVICE_SLAVE make <platform> <other options>A master is always on. A master broadcasts a packet every second. Four ofthe five packets are data packets; every fifth packet is a control packet.It toggles Led0 when it sends a data packet and Led1 when it sends acontrol packet.When a slave hears a data packet, it toggles Led0. When a slavehears a control packet, it turns off its radio for a shortperiod of time. Led1 indicates whether the slave's radio is on.If you install a slave and a master, you should see the slave blinkLed0 a few times, then when the master blinks Led1, the slave stopsfor a little while, then resumes blinking Led0.Philip Levis, 8/7/2005

⌨️ 快捷键说明

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