This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Radio Transmitter/Receiver example modification

Hello !!

I want to use Radio transmitter/ receiver example in my custom board which is used for BT remote control battery powered. I have added 10 buttons on my board and define it on example. I want to send UUID code so that it could be distinguished. 

Now after modifying the code I am getting same values on each button pressed. I am not able to find how the transmitter example sending values. Anyone help me out with :

1. Sending UUID with transmitter example.

2. Sending same data on each button press as it was doing with the default example.

3. As it is battery powered, I want to put it on low power mode so that battery could run long last.

I will appreciate any response.

Thanks 

Parents Reply
  • The changes I have done : 

    1. Define for 10 buttons instead of 4 buttons ( as default example) in  pca10040.h

    2. Added definitions everywhere as it is defined for 4 buttons in example code.

    3. changed GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 10 in sdk_config.h

    4. My gpios for buttons are 6 to 12, 15 to 17. Also changed.

     

    Hope this information would be enough. Haven't changed too much in code apart from above. 

    Thanks

Children
Related