RGB LED Class

Dependencies:   mbed

Fork of RGBLED by Steven Cheldelin

Revision:
0:7c0b6a649748
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jun 09 14:17:39 2014 +0000
@@ -0,0 +1,17 @@
+#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);
+    }
+}        
\ No newline at end of file