#ifndef _RGB_H
#define _RGB_H
+#include "isr.h"
+
/* Initialize the RGB LED assembly. Outputs are zero, PWM is off. */
void rgb_init();
/* Set a PWM value for each color LED. 0=off, 255=full on. */
#define rgb_set(red, grn, blu, wht) do { \
+ ndi(); /* FIXME: doesn't seem to fix flicker */ \
CCPR1L = (red); \
CCPR2L = (grn); \
CCPR3L = (blu); \
CCPR4L = (wht); \
+ nei(); \
} while (0)
#endif