Logarithmic scaling for LED dimming?

Hi Nick,

Thanks, simple is good where I'm concerned :slight_smile:

So I guess something like the following could work?

int vals [] = { 256, 230, 200, 150, 100, 50, 10 };
int numVal = 7; //number of values in array


for (int i = 0; i < numVal; i++){ //for the amount of values in the array..
brightness = (brightness - vals[i]); //set new brightness level
}