Hello,
I'm looking for an example to read digital input using GPIO. Can anyone suggest me a good example to do this?
Regards,
Sunil
Hello,
I'm looking for an example to read digital input using GPIO. Can anyone suggest me a good example to do this?
Regards,
Sunil
Reading a pin is as simple as reading the GPIO->IN register (use methods in nrf_gpio.h). If you need events to be generated on rising/falling edges you can look into the GPIOTE examples.
Hi Sunil,
I would recommend taking a look at the Pin Change Interrupt Example in our SDK.
Best regards
Bjørn
Hi Bjorn,
I have implemented mesh network using light switch example on nrf52832. I'm trying to give input using GPIO. I 'm getting a error when I add the gpiote.h to the client code. How do I add the path to gpiote.h in segger embedded studio?
Regards,
Sunil
Hi Bastien,
Thanks for replying to my question. I'll take a look at the GPIOTE examples.
Regards,
Sunil
This is how my project edit window looks.