- Application: The sample code is NUC123 applied to wireless mouse through RF24L01.
- BSP Version: NUC123 Series BSP CMSIS v3.01.001
- Hardware: NuTiny-EVB-123-LQFP64 V1.0
Use a timer to record, if 50ms does not receive data, frequency hopping once.
The IRQ (external GPIO) interrupt is used to detect whether data is received. If data is received, an IRQ interrupt will be generated. In the IRQ interrupt, if the received data flag is detected, the data will be read. If the first data is 0xAA, the second byte data will be judged and stored in the RF key variable.
You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1225163829