Change the grayscale curve to something that seems subjectively better.

This commit is contained in:
root
2013-08-20 06:54:34 +00:00
parent 99638f81c5
commit 5067125687
+1 -1
View File
@@ -358,7 +358,7 @@ void LedSign::SetBrightness(uint8_t brightness)
// set up page counts
// TODO: make SHADES a function parameter. This would require some refactoring.
const int max = 255;
const float scale = 1.5;
const float scale = 2.5;
const float delta = pow(max, 1.0 / scale) / (SHADES - 1);
int counts[SHADES];
uint8_t i;