Closed rambo closed 11 years ago
Thanks for the patch, but the whole thing has kinda been obviated by the excellent HSV support built in to FastSPI_LED2.
Ok, need to look into that in more detail (and convince them to separate the HSV parts to a separate library, fast HSV conversions would be very nice since I could then handle another project mostly in HSV which would be so much nicer than RGB).
The HSV stuff is pretty well isolated into its own .h/.cpp files and it's MIT licensed, so you're pretty free to appropriate whatever part you need.
did not want to clone the whole repo just for this.
diff --git a/RGBConverter.h b/RGBConverter.h index 1a3c960..da92c41 100644 --- a/RGBConverter.h +++ b/RGBConverter.h @@ -12,7 +12,11 @@
ifndef RGBConverter_h
define RGBConverter_h
-#include "WProgram.h" +#if (ARDUINO < 100) +#include
+#else
+#include
+#endif
class RGBConverter {