Is there any sample code in examples, because am a newbie to this great platform, my objective is to glow an led , when the motion is detected , and also when there is no motion ,led remains in off state
Is there any sample code in examples, because am a newbie to this great platform, my objective is to glow an led , when the motion is detected , and also when there is no motion ,led remains in off state
Hi,
If you are only reading digital input, you don't need SAADC. You can use the GPIO abstraction functions to configure and read digital GPIOs:
#define IN_PIN 30
uint32_t pin_value;
nrf_gpio_cfg_input (IN_PIN, NRF_GPIO_PIN_NOPULL);
pin_value = nrf_gpio_pin_read (IN_PIN);
Best regards,
Jørgen
Hi,
If you are only reading digital input, you don't need SAADC. You can use the GPIO abstraction functions to configure and read digital GPIOs:
#define IN_PIN 30
uint32_t pin_value;
nrf_gpio_cfg_input (IN_PIN, NRF_GPIO_PIN_NOPULL);
pin_value = nrf_gpio_pin_read (IN_PIN);
Best regards,
Jørgen
ok sir , thank you . i will try the above code