GROVE - LEDバー サンプルプログラム

Dependencies:   LEDBar mbed

Revision:
0:3bb6b8bf827f
diff -r 000000000000 -r 3bb6b8bf827f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Nov 30 03:05:20 2013 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "LEDBar.h"
+
+LED_Bar ledbar(p5,p6); // clk data
+
+int main() {
+    ledbar.set_LED_Index(0x355);
+    wait(3.0);
+
+    while(1) {
+        for (int i=0;i<=10;i++){
+            ledbar.set_LED_Range(i);
+            wait(1.0);
+        }
+    }
+}