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.
thank you
i know the loop
but i did not get if button is pressed or not i am trying to read pin state using nrf_gpio_pin_get(14);
but this not work.
if you have any suggestion let me know.
nrf_gpio_pin_get(
So what does the documentation for that function tell you?
How about nrf_gpio_pin_read() ?
i do as you tell me.
nrf_gpio_cfg_input(01,NRF_GPIO_PIN_NOPULL);
SEGGER_RTT_printf(0,"status%d\n",nrf_gpio_pin_read(01));
i write like this but the status is printed 0 on segger rtt .
this not print high logic level.
thank you.
i do as you tell me.
I didn't tell you anything; I asked you to study the documentation - have you done that?
the status is printed 0
So what did you expect?
Again, what does the documentation tell you?
It's no use just randomly throwing function calls together - you need to understand what those functions do!
i already read the documentation. this function give 1 if the logic level is high and 0 for logic level low.
i already read the documentation. this function give 1 if the logic level is high and 0 for logic level low.