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
There is no PIR sensor in nRF52832.
There is an example code in the SDK. You can refer to http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/nrf_dev_saadc_example.html?cp=4_0_0_4_4_28
ok , thank you , i will see that one.
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