how to turn on all 4 led one by one pressing button from transmitter and receiver.
how to turn on all 4 led one by one pressing button from transmitter and receiver.
Please provide more details about your current setup and what you want to achieve. For instance, what SDK version you are using, what wireless protocol you intend to use, etc.
I have two nRF52DK 52832 board. When I want turn on LED on board no.2 (RX) then have to I have to press button on board no.1(TX). if I press button in board no.1 then LED should be turn on no.1 LED in board 2. respectively same for LED 2,3,4.
currently i am using this program
TX : C:\nrf_sdk\examples\ble_peripheral\ble_app_blinky\pca10040\s132\ses
RX : C:\nrf_sdk\examples\ble_peripheral\ble_app_blinky\pca10040\s132\ses
Ok, so everything is working as expected now, except you want to turn on all LEDs, not just LED 1? In that case, you can replace the calls to bsp_board_led_on(LEDBUTTON_LED); and bsp_board_led_off(LEDBUTTON_LED); with bsp_board_leds_on(); and bsp_board_leds_off(); respectively.
Note that if you do this, you can no longer use BSP_BOARD_LED_1 and BSP_BOARD_LED_0 to indicate connection and advertising status.
I did but i want turn on LED when i press TX number.1 button then led should be ON on RX LED number.1. now same if i press TX button 2 then LED should ON on RX 2. Again if i press TX button number.3 then LED number.3 on in RX. now again if i want to turn ON LED number.4 then i have to press TX button number.4 then it led should turn on in RX LED number.4.
Thanks for the clarification, but have you made any attempts to add support for this in the SDK example? You will need to re-assign the other buttons and LEDs and modify the led_write_handler() function.
I tried but it is not able turn on led give me other solution
Could you provide details on the steps you have taken so far and where you're encountering difficulties?
Could you provide details on the steps you have taken so far and where you're encountering difficulties?
please prove me Trail code i can try that code which you told me before do some change in code in code
please give me update
Please reply to the question I asked here:
Could you provide details on the steps you have taken so far and where you're encountering difficulties?
I need to know how you tried to implement this to understand why it is not working.
I want to turn on LED by using Bluetooth protocol.
When I press BUTTON1(TX) then LED1(RX) should be ON. now same if I press BUTTON2(TX) then LED2(RX) should be ON. Again if I press BUTTON3(TX) then LED3(RX) should be ON. now again if I press BUTTON4(TX) then LED4(rx) should be ON.
Currently I am using SEGGER embedded studio for ARM 7.10a
TX : C:\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_blinky\pca10040\s132\ses
RX : C:\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\ble_central\ble_app_blinky_c\pca10040\s132\ses