Hi,
I want to get input from gpio from an external button. i try many syntaxes for getting input from gpio but nothing is work.
i try
nrf_gpio_pin_dir_get(12)
nrf_gpio_pin_sense_get(12)
nrf_gpio_pin_read(12)
i not get any output from it.
Hi,
I want to get input from gpio from an external button. i try many syntaxes for getting input from gpio but nothing is work.
i try
nrf_gpio_pin_dir_get(12)
nrf_gpio_pin_sense_get(12)
nrf_gpio_pin_read(12)
i not get any output from it.
Have you looked at the examples in the SDK ?
i look the bsp example. but nothing helped.
Have you tried the "pin_change_int" example?
i see the example but i want to increment variable continuously when an external button is pressed.
thank you.
while( true ) { if( button is pressed ) { ++variable; } }