Megha Govind Magajikondi / Mbed 2 deprecated mbed_interrupt

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
megha1118
Date:
Thu Dec 01 08:24:31 2016 +0000
Commit message:
megha

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
megha.h Show annotated file Show diff for this revision Revisions of this file
--- /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