hi, i am newer here.
i am confused in nrf_gpio_pin_sense_t i.e. NOSENSE, HIGH_SENSE, LOW_SENSE. where is use of this feature ? why it is required instead gpio_input function.
thanks in advance.
hi, i am newer here.
i am confused in nrf_gpio_pin_sense_t i.e. NOSENSE, HIGH_SENSE, LOW_SENSE. where is use of this feature ? why it is required instead gpio_input function.
thanks in advance.
Hi,
The sense-functionality is used to generate interrupt on a pin change. This can be used if you want to perform an action if the pin change, but do not want to check the level of the pin regularly. Check out the GPIOTE driver and Pin Change Interrupt Example in the SDK for details on how this can be used.
Best regards,
Jørgen
Hi,
The sense-functionality is used to generate interrupt on a pin change. This can be used if you want to perform an action if the pin change, but do not want to check the level of the pin regularly. Check out the GPIOTE driver and Pin Change Interrupt Example in the SDK for details on how this can be used.
Best regards,
Jørgen