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

button exmaple is not working in SDK version 9.0.0

Hello evryone,

i cloned button example form github to sdk version 9.0.0 and i modified the neccesary changes between app.gpiote.c//nrf_drv_gpiote.c files and set the GPIOTE ENABLED to 0 after that it is getting compiled with no errors but the baord shows nothing if the press any of the button can anyone suggest me what modifications has to be done or any changes?

ble_app_template.zip

Thank you

prabhu

Parents
  • TIMER2 is 16 bit so prescaler 4 wont fit in it. you have to change it to prescaler 10. If you press the button for 3 seconds, LED will glow, what happens if you did not release it and continue for 5 seconds? should the LED that started glowing after 3 seconds turn off? anyway, i have modified your file and given you a template. This will let the LED glow if you press the button for 3 seconds and will turn of if you press it for 5 seconds.

    main.c

  • Hello Aryan,

    I have uploaded my program in the main post please have a look and i am trying to create the function like this press the button for three seconds then only the buzzer has to beep for three seconds and also i ahve configured the gpio pin6, pin 7 in high drive mode inorder to increase the loudness of the buzzer please suggest me how to interface the buzzer and button it would be useful for me Thank you

Reply
  • Hello Aryan,

    I have uploaded my program in the main post please have a look and i am trying to create the function like this press the button for three seconds then only the buzzer has to beep for three seconds and also i ahve configured the gpio pin6, pin 7 in high drive mode inorder to increase the loudness of the buzzer please suggest me how to interface the buzzer and button it would be useful for me Thank you

Children
No Data
Related