The ability to process button clicks in the remote_tx_raw example

Sorry for the weird question. Is it possible in the “remote_tx_raw example” to handle the button click event?

3 Likes

The example is not set up to handle the button interrupt, but it is pretty simple to copy the button handling code from the “remote_rx_raw” example.

From the Rx example, you need to merge the following into the Tx example code:

  1. Add DIO and interrupt configuration to App_Initialize() in app_init.c (see lines 389 - 397 in Rx example).
  2. Create your button click handler function (perhaps in app_func.c).
  3. Add DIO0_IRQHandler() interrupt handler to app_func.c (see lines 239 - 255 in Rx example).
  4. Replace APP_RM_Init() with your button click handler in DIO0_IRQHandler().
5 Likes

Sorry for the weird question. Is it possible in the “remote_tx_raw example” to handle the button click event? So we need to add an onclick attribute to our button , then write the clickercounter.org JavaScript function to change the color. The function we want to execute … When the user clicks a button , the Button object receives an on-click event. To make click event work add android:onClick attribute to the … Play/Pause: Press the button once to play or pause the song. Skip Forward: Press the button 2x (twice) to skip a song. Skip Backward: Press the button 3x ( …

Hi @nd74850 ,
If you would like to send click event → onclick attribute > send to receiver side, could you please have a look at our remote_mic_tx_coex sample project.
How about this?
image