Library for multi-pin RGB leds that encapsulates three PwmOut objects.

Dependents:   MAX32630FTHR_RGB

Revision:
1:ce9726c385f1
Parent:
0:434f7d7a11d8
Child:
2:ecd3840bb6a7
--- a/MultipinRGB.h	Tue Mar 28 20:22:56 2017 +0000
+++ b/MultipinRGB.h	Tue Mar 28 20:26:46 2017 +0000
@@ -43,27 +43,27 @@
 * #include "mbed.h"
 * #include "MultipinRGB.h"
 *
-*  int main ()
-*  {
-*    MultipinRGB leds(LED1, LED2, LED3);
-*    float redDutyCycle(0.5F), grnDutyCycle(0.0F), bluDutyCycle(0.0F), temp;
+* int main ()
+* {
+*   MultipinRGB leds(LED1, LED2, LED3);
+*   float redDutyCycle(0.5F), grnDutyCycle(0.0F), bluDutyCycle(0.0F), temp;
 *    
-*    while(1)
-*    {
-*      leds.writeRGB(redDutyCycle, grnDutyCycle, bluDutyCycle);
+*   while(1)
+*   {
+*     leds.writeRGB(redDutyCycle, grnDutyCycle, bluDutyCycle);
 *
-*      printf("RGB Duty Cycles = %3.1f, %3.1f, %3.1f\r\n", 
-*              redDutyCycle, grnDutyCycle, bluDutyCycle);
+*     printf("RGB Duty Cycles = %3.1f, %3.1f, %3.1f\r\n", 
+*             redDutyCycle, grnDutyCycle, bluDutyCycle);
 *
-*      //shift r->g->b->r
-*      temp = bluDutyCycle;
-*      bluDutyCycle = grnDutyCycle;
-*      grnDutyCycle = redDutyCycle;
-*      redDutyCycle = temp;
+*     //shift r->g->b->r
+*     temp = bluDutyCycle;
+*     bluDutyCycle = grnDutyCycle;
+*     grnDutyCycle = redDutyCycle;
+*     redDutyCycle = temp;
 *      
-*      wait(0.25);
-*    }
-*  }
+*     wait(0.25);
+*   }
+* }
 * @endcode
 *
 */