ratkins / RGBConverter

An Arduino library for converting between HSL, HSV and RGB colour spaces.
Do What The F*ck You Want To Public License
89 stars 21 forks source link

Arduino 1.0+ support #2

Closed rambo closed 11 years ago

rambo commented 11 years ago

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 {

ratkins commented 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.

rambo commented 11 years ago

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).

ratkins commented 11 years ago

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.