Doesn't accept calls

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
jaehughes
Date:
Mon Aug 10 20:19:43 2015 +0000
Commit message:
Text, call, need to accept call

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
diff -r 000000000000 -r 03b9053cfcf4 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Aug 10 20:19:43 2015 +0000
@@ -0,0 +1,30 @@
+#include "mbed.h"
+ 
+DigitalOut led_red(LED_RED);
+InterruptIn sw2(PTD1);
+DigitalIn test(D8);
+
+Serial pc(USBTX, USBRX);
+
+ 
+void sw2_release(void)
+{
+    led_red = !led_red;
+    printf("On-board button SW2 was released.\n");
+}
+ 
+int main()
+{
+    while(1){
+    //sw2.rise(&sw2_release);
+    
+     if (sw2 == 0) {
+    printf("0");
+    }
+    else{
+        printf("1");
+        }
+        }
+
+}
+
diff -r 000000000000 -r 03b9053cfcf4 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Aug 10 20:19:43 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/cbbeb26dbd92
\ No newline at end of file