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

ncs zephyr example called 'nrfx'

ncs 1.5.1, using SES, the example for zephyr
samples/boards/nrf/nrfx/src/main.c
github URL:
github.com/.../main.c

does not work for me;
while the 'button_handler' gets called OK, the LED does not toggle.

And another compiler gives a WARNING on the call lines for n
  nrfx_gppi_channel_endpoints_setup 
due types mismatch!
I think its the last argument per 
nrfx_gpiote_in_event_get(OUTPUT_PIN) 
that should be of enum nrf_gpiote_task_t, but your code is passing an 'event' kind.
I tried to fix but still no LED toggle.

Please review this example.

Thanks!

Parents Reply
  • Hi! I just spoke to the developer and there does seem to be a small copy-paste error in this sample. There will be a fix soon. 

    And you are correct in your observation, there is no debouncing used here as the purpose of this sample is to show how to use the nrfx drivers in Zephyr, not how to handle buttons reliably. 

    We unfortunately don't support the debouncing feature in NCS yet.

Children
No Data
Related