Taking analog sensor values from Arduino and mapping them to a color

edited March 2014 in How To...

Hello,

(this is my first time posting)

I have a light temp. sensor connected to an arduino which sends the analog values of light temp. to processing to be graphed. What I would like is each bar in the graph to be colored according to the light temp. value it is displaying.

I have a table of light temps in 100K increments and corresponding color temps but i'm not sure how to go about converting the analog values into a color.

Do I use a 2D array? Would a table be better? Any info would help a lot.

Thank you

Answers

Sign In or Register to comment.