arduino: Change cmin[] semantics - pwm level of channel level 1, not 0

Should eliminate dim red light for black pixels.
This commit is contained in:
Petr Baudis 2012-08-19 23:38:24 +02:00
parent ac8e6cd3a9
commit b809208b60
3 changed files with 5 additions and 3 deletions

View file

@ -97,7 +97,7 @@ const int cpin[LEDS_PER_TLC * NUM_TLCS][CH] = {
#define cpinsets (sizeof(cpin)/sizeof(cpin[0]))
/* cca 2.7ohm resistor per channel */
const int cmin[cpinsets][CH] = {
const int cmin[cpinsets][CH] = { // level of 1 (not 0!)
{ 4, 0, 0 }, /* box 1 */
{ 5, 0, 0 }, /* box 2 */
{ 5, 0, 0 }, /* box 3 */
@ -122,7 +122,7 @@ const int cmin[cpinsets][CH] = {
{ 5, 0, 0 }, /* box 19 */
{ 5, 0, 0 }, /* box 20 */
};
const int cmax[cpinsets][CH] = {
const int cmax[cpinsets][CH] = { // level of 255
{ 120, 250, 190 }, /* box 11 */
{ 100, 250, 180 }, /* box 2 */
{ 100, 250, 180 }, /* box 3 */