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.
Revision 0:cecb923bd4c3, committed 2016-12-01
- Comitter:
- megha1118
- Date:
- Thu Dec 01 08:24:31 2016 +0000
- Commit message:
- megha
Changed in this revision
--- /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) +{ + + } + } + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Dec 01 08:24:31 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/d75b3fe1f5cb \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/megha.h Thu Dec 01 08:24:31 2016 +0000 @@ -0,0 +1,15 @@ +#ifndef MBED_BUZZ_H +#define MBED_BUZZ_H + +#include "mbed.h" + +class interrupt { +public: + Flasher(PinName pin); + void flash(int n); + +private: + DigitalOut _pin; +}; + +#endif \ No newline at end of file