Test mbed1.

Dependencies:   mbed-src

Files at this revision

API Documentation at this revision

Comitter:
mja054
Date:
Thu Mar 13 16:35:52 2014 +0000
Parent:
1:1019095e41c4
Commit message:
Tested for 1ms to 10s;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1019095e41c4 -r 9f7506fa29d4 main.cpp
--- a/main.cpp	Thu Mar 13 16:23:16 2014 +0000
+++ b/main.cpp	Thu Mar 13 16:35:52 2014 +0000
@@ -14,6 +14,7 @@
 
 DigitalOut out(PTD3);
 DigitalOut green(LED1);
+DigitalOut red(LED2);
 Serial pc(USBTX, USBRX);
 Timer timer;
 SLCD slcd;
@@ -45,6 +46,7 @@
         flag++;
         if (flag == val) {
             out = !out;
+            red = !red;
             flag = 0;
         }
 //        green = !green;
@@ -78,14 +80,14 @@
 int main() {
     flag = 0;
     green = 0;
+    red = 0;
     pc.baud(BAUD_RATE);
     pc.attach(read);
     slcd.printf("nesl");
     init_test();
-
     while(1) {
         if (flag == 1000) {
-            green = !green;
+ //           green = !green;
             flag = 0;
         }
     }