GROVE - RGB LED サンプルプログラム
Dependencies: Chainable_RGB_LED mbed
main.cpp
- Committer:
- jksoft
- Date:
- 2013-11-30
- Revision:
- 0:1a201edebc5c
File content as of revision 0:1a201edebc5c:
#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); } }