Terry Lung
/
NewLoader
test
Fork of NewLoader by
main.cpp
- Committer:
- TYLG
- Date:
- 2017-12-12
- Revision:
- 1:bdd416b8e5a8
- Parent:
- 0:890fbf136674
File content as of revision 1:bdd416b8e5a8:
#include "mbed.h" DigitalOut myled(LED1); InterruptIn button(BUTTON1); void leave_bootloader() { mbed_start_application(POST_APPLICATION_ADDR); } int main() { button.rise(&leave_bootloader); while(1) { myled = 1; // LED is ON wait(0.5); // 200 ms myled = 0; // LED is OFF wait(1.0); // 1 sec } }