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

MCU not receiving buttons pressed

Hi,

We are using nRF51822 chip, and we are using TL3315 switches. I am very new to dealing with buttons. The current problem is that when I press the button, the MCU seems to not receive which button is pressed. I am using app_button library, and I tried both ACTIVE LOW and ACTIVE HIGH in active state and all PULLUP, PULLDOWN and NOPULL resistors when I configure the buttons and initialized them. None of them worked. So I have no idea whether the buttons work or not is related to active states or resistors. Another thing is that button_handler is never called when the program is running on my PCB. So I wonder when the button event handler function is called. Thank you!

Related