void main(void) { uchar RxBuf[2]; Init_NRF24L01(); Delay(6000); SetRX_Mode(); while(1) { if(NRF24L01_RxPacket(RxBuf)) //要用中断检测接收到数据,后读取寄存器 { LED = 0; } }}