CC2530按键SW1单击双击测试双联继电器 #include "ioCC2530.h" #define LED1 P1_0 #define LED2 P1_1 #define JD1 P1_7//继电器1 #define JD2 P2_0//继电器第二联 #define SW1 P1_2//按键1 unsigned cha
CC2530SW1单击双击双联继电器测试 while(1) { /* user code start */ if(basicRfPacketIsReady()){ basicRfReceive(buf,1,NULL); if(buf[0]==0x01){ P1_7=!P1_7; P1_0=1;4 } else if(buf[0]==0x00