The example program for mbed pin-compatible platforms

Dependencies:   mbed

Fork of mbed_blinky by Mbed

Files at this revision

API Documentation at this revision

Comitter:
Cola
Date:
Thu May 22 20:39:31 2014 +0000
Parent:
5:0ee0afc66ccd
Commit message:
teste

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 0ee0afc66ccd -r b3616e2cc202 main.cpp
--- a/main.cpp	Thu Apr 03 20:14:01 2014 +0100
+++ b/main.cpp	Thu May 22 20:39:31 2014 +0000
@@ -1,12 +1,26 @@
 #include "mbed.h"
 
-DigitalOut myled(LED1);
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
+DigitalOut myled3(LED3);
+DigitalOut myled4(LED4);
+
+Serial pc(USBTX, USBRX); // tx, rx
 
 int main() {
     while(1) {
-        myled = 1;
+        myled1 = 1;
+        myled2 = 1;
+        myled3 = 1;
+        myled4 = 1;
         wait(0.2);
-        myled = 0;
+        myled1 = 0;
+        myled2 = 0;
+        myled3 = 0;
+        myled4 = 0;
         wait(0.2);
+        
+       pc.printf("Hello World!\n");
+        
     }
 }
diff -r 0ee0afc66ccd -r b3616e2cc202 mbed.bld
--- a/mbed.bld	Thu Apr 03 20:14:01 2014 +0100
+++ b/mbed.bld	Thu May 22 20:39:31 2014 +0000
@@ -1,1 +1,1 @@
-http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776
\ No newline at end of file