Hello,
I am beginner with NRF 52 DK. I am trying to change the uart example using NRF 52 with SDK 15.02, so that I would send message after pressing button to my PC via UART connection. Any help please ?
Thanks
Hello,
I am beginner with NRF 52 DK. I am trying to change the uart example using NRF 52 with SDK 15.02, so that I would send message after pressing button to my PC via UART connection. Any help please ?
Thanks
Your button press will trigger an event. in the callback for that event set a flag. In the main process that flag. If flag = 1 then send uart data and clear flag. If flag not no you can either sleep or continue looping through the main. Each button press will trigger an event which will set the flag to send data. There is probably button press timing you should worry about but the above is the basic idea.
Your button press will trigger an event. in the callback for that event set a flag. In the main process that flag. If flag = 1 then send uart data and clear flag. If flag not no you can either sleep or continue looping through the main. Each button press will trigger an event which will set the flag to send data. There is probably button press timing you should worry about but the above is the basic idea.