RGB LED Class
Dependencies: mbed
Fork of RGBLED by
main.cpp
- Committer:
- rcflyair
- Date:
- 2014-06-09
- Revision:
- 0:7c0b6a649748
File content as of revision 0:7c0b6a649748:
#include "mbed.h" #include "rgbled.h" int main(void) { rgbled rgb(PTB22, PTE26, PTB21); // create rgb object with pin definitions for FRDM-K64F board rgb.active(false); // set led output to active low rgb.set(none); // set led output of all off while(1){ rgb.set(red); wait(1); rgb.set(green); wait(1); rgb.set(blue); wait(1); } }