hello there i want to generate external interrupt from adxl345.can you help me? can we do same like we are using with button??
hello there i want to generate external interrupt from adxl345.can you help me? can we do same like we are using with button??
Hi rushin
Would this button press solution be useful to you, or do you want to use app_button directly?
By the way, what nRF51 SDK version are you using?
All that a button does is to change the voltage level on a GPIO pin to generate an interrupt. If an external circuit also changes the voltage level in the same way as a button does, you can use the same button code to detect an interrupt from an external circuit, as e.g. the adxl345.
Update 8.1.2016 To use app_button, you need to initialize app_timer and app_gpiote, because app_button uses those libraries internally. A good app_button code example is available on Github. The example is for nRF51 SDK 8.0.0 but it should also work for nRF51 SDK 10.0.0
i don't know but this code is not working. when i load this code. all LEDS are on. there is no change in LED. if i press button
i don't know but this code is not working. when i load this code. all LEDS are on. there is no change in LED. if i press button