preende focos

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Carlos_IMT
Date:
Wed Oct 02 16:36:04 2013 +0000
Commit message:
led3;

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Oct 02 16:36:04 2013 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+PwmOut rled(LED_RED);
+PwmOut gled(LED_GREEN);
+PwmOut bled(LED_BLUE);
+
+int main()
+{
+
+while(1)
+{
+rled = 1;
+gled = 0.5;
+bled = 0;
+wait(1);
+
+rled = 0.5;
+gled = 1;
+bled = 0; 
+wait(1);
+}
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Oct 02 16:36:04 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file