#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 char count=0; unsigned char Num=0; void delay(int time) { while(time--) { for(int i=0;i