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.
Take a look at this answer.
thank you!
I test the code, but when I add this code in my program, but an error happened. when I include more .h, then more error will happen. I think if I can get a register drive example. When I use the ADC, always *** undefined , When I copy the code to the program the error will be more. SO I think that if I direct control register to finish the program.
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