Hello everyone
i want to create button fucntion press the button for 3 seconds and then it has to start advertsing but i have excuted the button fucntion but it si showing some errors in gpiote files so any suggestion or ideas will be helpful for me
Hello everyone
i want to create button fucntion press the button for 3 seconds and then it has to start advertsing but i have excuted the button fucntion but it si showing some errors in gpiote files so any suggestion or ideas will be helpful for me
I modified your code and made a very basic example for you. It starts a single-shot timer when you push a button. When the timer event occurs after 3 seconds the application checks whether the button is still pressed and lights a LED accordingly. See comments in code marked with "NORDIC". You can add another timer that can turn off the LED for after 5 seconds.
EDIT: Updated example that starts advertising after 3 second push and stops advertising after 5 second push.
EDIT 2: Exmple with buttons and ble advertising:
Hello prabhudurai did you manage get your result
Hello prabhudurai did you manage get your result