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

GPIOTE Read byte

hi,

I have an external device only one pin, need to use GPIO to read the signal, how do I deal with it?

i need read byte.

  • All GPIO (not GPIOTE, that's something slightly different!) functions (HAL) are in nRF5 SDK path \components\drivers_nrf\hal\nrf_gpio.h. Simply configure PIN as input (e.g. by nrf_gpio_cfg_input) and then read it by nrf_gpio_pin_read any time you want. If you want to get interrupt when PIN value changes then you need to go with GPIOTE. Both these features and HAL functions are explained in nRF5 SDK examples, just find it and read it.

Related