Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:cecb923bd4c3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Dec 01 08:24:31 2016 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" + DigitalOut led1(LED1); + InterruptIn button(p7); + +void fun1() + { + led1=1; + } + void fun2() + { + led1=0; + } + + + + int main() + { + button.rise(&fun1); + button.fall(&fun2); +while(1) +{ + + } + } + +