GROVE - RGB LED サンプルプログラム

Dependencies:   Chainable_RGB_LED mbed

Files at this revision

API Documentation at this revision

Comitter:
jksoft
Date:
Sat Nov 30 02:26:50 2013 +0000
Commit message:
Rev1

Changed in this revision

Chainable-RGB-LED.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/Chainable-RGB-LED.lib	Sat Nov 30 02:26:50 2013 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/seeed/code/Chainable-RGB-LED/#24631ceaa38a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Nov 30 02:26:50 2013 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "ChainableLED.h"
+
+ChainableLED rgbled(p5,p6,1);  // clk data num
+
+int main() {
+    while(1) {
+        rgbled.setColorRGB(0,255,0,0);  // RED
+        wait(0.5);
+        rgbled.setColorRGB(0,0,255,0);  // GREEN
+        wait(0.5);
+        rgbled.setColorRGB(0,0,0,255);  // BLUE
+        wait(0.5);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Nov 30 02:26:50 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file