I'm using SD 110 and the PCA10001 board.
I make the call to:nrf_gpio_port_read(LED_1), where LED_1 is on, or high. This call always returns a 0. How can I read the state of this GPIO pin? Why am I getting a 0 for the return, when the pin is obviously high?
I get the same return value of 0, if the LED is off.
Here's My Code:
#define LED_1 19
nrf_gpio_cfg_output(LED_1);
LED_State = nrf_gpio_pin_read(LED_1);