version 1: not doing what we want

Dependencies:   MODSERIAL mbed

Files at this revision

API Documentation at this revision

Comitter:
Tess
Date:
Thu Oct 31 10:06:15 2013 +0000
Commit message:
Version 1: not doing what we want

Changed in this revision

MODSERIAL.lib Show annotated file Show diff for this revision Revisions of this file
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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MODSERIAL.lib	Thu Oct 31 10:06:15 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Sissors/code/MODSERIAL/#f42def64c4ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Oct 31 10:06:15 2013 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+#include "MODSERIAL.h"
+
+DigitalIn toggle(PTC7);
+DigitalOut Redled(LED2);
+//DigitalIn stoggle_geel(PTC0);
+
+
+
+/*MODSERIAL pc(USBTX,USBRX);
+pc.baud(921600);
+pc.printf("%f", switchinput_geel);*/
+
+void toggle_on() {
+    for(int i=0; i<10; i++) {
+        Redled = !Redled;
+        wait(0.2);
+    }
+}
+ 
+void toggle_off() {
+    // do nothing
+}
+ 
+int main() {
+    while(1) {
+        while(!toggle); // wait while toggle == 0
+        toggle_on();
+        while(toggle);  // wait while toggle == 1
+        toggle_off();
+     }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Oct 31 10:06:15 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file