I've just started working with Nrf51822, I'm trying to make this scenario for weeks but i failed.
Plz help me!
How to make Nrf51822 wake up by a button click, increment a variable then go back to sleep? i've tested __WFI() and __WFE() but it doesnt work.