Hi everyone, I'm working on a project that requires both Bluetooth Low Energy and simple RF serial transmisstion, therefore I'm using an nRF24l01 module, because there's a "bit-banging" method (https://github.com/sandeepmistry/arduino-nRF24L01-BLE) to make the module work as an advertising-only Bluetooth Low Energy peripheral , and the Mirf library is easy to use. I'm trying to combine these two, which means the module will switch between BLE mode and Mirf mode when a button is pressed. The code works fine for each mode alone, but when I try to switch to the other mode, or simply initialize a mode after the other, the modules stop working properly. I figure it might the the setting of the registers (I copied the initializing part straight from the example code of Mirf and BLE bit-banging). And so to switch modes I first need to reset all the registers of the nRF24l01 chip to their initial states (I'm not sure though), is there anyway I can do this without turning the module off and on again?
Thank you for helping me :D