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:
yeah i ahve added all the necessaty imers but i am not able to find where i am going wrong can you guide me and verify my code and tell me exactly what i have to do and where i have to do because its really bit confusing for me
yeah i ahve added all the necessaty imers but i am not able to find where i am going wrong can you guide me and verify my code and tell me exactly what i have to do and where i have to do because its really bit confusing for me