Junichi Katsu
/
Grove_LEDBar
GROVE - LEDバー サンプルプログラム
Revision 0:3bb6b8bf827f, committed 2013-11-30
- Comitter:
- jksoft
- Date:
- Sat Nov 30 03:05:20 2013 +0000
- Commit message:
- Rev1
Changed in this revision
diff -r 000000000000 -r 3bb6b8bf827f LEDBar.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LEDBar.lib Sat Nov 30 03:05:20 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/jksoft/code/LEDBar/#a2b97475d3af
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); + } + } +}
diff -r 000000000000 -r 3bb6b8bf827f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Nov 30 03:05:20 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file