Page 1 of 1
Button turn on wake up NRF51
Posted: Mon Jul 25, 2016 4:32 am
by lzy
I want to analysis the "crazyflie2_mbs_master"code,and I can not find the code that button on to wake up the NRF51.Who can tell me?thanks.

Re: Button turn on wake up NRF51
Posted: Mon Jul 25, 2016 8:45 am
by arnaud
Hi,
The CPU goes in STOP mode when sleeping which means that pressing the button wakes it up from reset and the _MBS firmware is then started in main() at startup and then wait to see for how long the button stays pressed. The code to setup the STOP mode and the wake-up pin is part of the crazyflie2-nrf-firmware project.
/Arnaud