Skip to content

Instantly share code, notes, and snippets.

View strathmeyer's full-sized avatar

Eric Strathmeyer strathmeyer

View GitHub Profile
@strathmeyer
strathmeyer / gist:3329859
Created August 12, 2012 04:59 — forked from hdznrrd/gist:656996
HSV to RGB (Arduino)
void HSV_to_RGB(float h, float s, float v, byte &r, byte &g, byte &b)
{
int i;
float f,p,q,t;
h = constrain(h, 0.0, 360.0);
s = constrain(s, 0.0, 100.0);
v = constrain(v, 0.0, 100.0);
s /= 100;