yoshitaka toyoshima / Mbed 2 deprecated mbed_blinky

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
toyoshima
Date:
Sun Mar 13 02:22:32 2016 +0000
Commit message:
LED(??)?????0.5????

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	Sun Mar 13 02:22:32 2016 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+DigitalOut LED_R(LED1);
+DigitalOut LED_G(LED2);
+DigitalOut LED_B(LED3);
+
+int main() {
+    while(1) {
+        LED_R = 1;
+        LED_G = 1;
+        LED_B = 1;
+        wait(0.5);
+        LED_R = 0;
+        LED_G = 0;
+        LED_B = 0;
+        wait(0.5);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Mar 13 02:22:32 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/87f2f5183dfb
\ No newline at end of file