Hello, I want to change mode from radio test example from button input. How can I use the gpiote for mode change from button input. I only want to use modulated and unmodulated certain fixed channel. Thank you.
Hello, I want to change mode from radio test example from button input. How can I use the gpiote for mode change from button input. I only want to use modulated and unmodulated certain fixed channel. Thank you.
The easiest way to do an action upon a button push is to use the button handling library. Its API reference can be found here.
Thank you. I did with GPIOTE. I have one more question. I want to transmit un-modulated transmit with a fixed channel. From the radio test example, I think just run the function radio_tx_carrier(txpower_, mode_, channel_start_); would be Ok. But from the the link text, I have to use radio_tx_carrier(txpower, mode, channel); and radio_tx_sweep_start(txpower,mode,channel,channel, delayms); ??? Thank you.
Yes, it is sufficient to call radio_tx_carrier(..) to transmit an unmodulated carrier. As the documentation shows, the radio will transmit unmodulated carrier when in IDLE. TASKS_START will start modulated carrier.
Yes, the link you linked to is not entirely correct, it is not necessary to call radio_tx_sweep_start.