I'm using a sample from nRF connect SDK v1.91.1 for BLE peripheral. I'm trying to read one of the buttons on the development kit, but I'm not very sure how to use the button handler. Is there a function to directly read the button press?
I'm using a sample from nRF connect SDK v1.91.1 for BLE peripheral. I'm trying to read one of the buttons on the development kit, but I'm not very sure how to use the button handler. Is there a function to directly read the button press?
Take a look at the button sample: https://github.com/nrfconnect/sdk-zephyr/tree/v2.7.99-ncs1-1/samples/basic/button. It shows how to set up a callback for button presses (GPIO input).
Best regards,
Simon
Take a look at the button sample: https://github.com/nrfconnect/sdk-zephyr/tree/v2.7.99-ncs1-1/samples/basic/button. It shows how to set up a callback for button presses (GPIO input).
Best regards,
Simon