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)
{
P1_7=!P1_7;
P1_0=0;
}
else if(buf[0]==0x03)
{
P2_0=!P2_0;
P1_1=1;
}
else if(buf[0]==0x02)
{
P2_0 =!P2_0;
P1_1=0;
}
}
/* user code end */
}
1