Scaling for Color
import processing.serial.*;
EZIO ezio;
void setup()
{
println(Serial.list());
ezio = new EZIO (this,"/dev/ttyUSB0");
size(600,600);
}
void draw ()
{
float a,b;
float scaling;
a = float (ezio.a2d(3));
// highest value right now is 140
// want 255
scaling = 255.0/140.0;
b = a * scaling;
// b= 255-b; do this to reverse it
println (a + " " + b);
background(b);
}