Currenetly I access the gpio pins by using this code (P1.01 this pin)
#define PIN_1 ARDUINO_0_PIN
nrf_gpio_cfg_output(PIN_1);
and so on
Is there any other way to define the pin?
Please provide an exammple;
Currenetly I access the gpio pins by using this code (P1.01 this pin)
#define PIN_1 ARDUINO_0_PIN
nrf_gpio_cfg_output(PIN_1);
and so on
Is there any other way to define the pin?
Please provide an exammple;
Which board are you using?
pca10056
#define INPUT_PIN NRF_GPIO_PIN_MAP(0,13)
Here in "NRF_GPIO_PIN_MAP(0,13) " 0 corresponds to port number and 13 is the pin.
#define INPUT_PIN NRF_GPIO_PIN_MAP(0,13)
Here in "NRF_GPIO_PIN_MAP(0,13) " 0 corresponds to port number and 13 is the pin.
OK thanks