I want to use the adc when I push the button or recieive some data from the android?
But the example provide the event trig.
Can somebody provide some example , only use one function to read the value of ADC?
Thanks for all .
I want to use the adc when I push the button or recieive some data from the android?
But the example provide the event trig.
Can somebody provide some example , only use one function to read the value of ADC?
Thanks for all .
Take a look at this answer.
Make sure that ADC is enabled in sdk_config.h
. Also make sure that the ADC libraries are added in your "Include Paths" in the C/C++ tab in "Options for Target 'nrf5xxxx_xxxx". The include path is typically ..\..\..\..\..\..\components\drivers_nrf\adc
Make sure that ADC is enabled in sdk_config.h
. Also make sure that the ADC libraries are added in your "Include Paths" in the C/C++ tab in "Options for Target 'nrf5xxxx_xxxx". The include path is typically ..\..\..\..\..\..\components\drivers_nrf\adc