so what happens to charselect is fadeValue2 is 36 ?
if 36 is not a valid index, then why don't you do
fadeValue2 = map(fadeValue1, 0, 1023, 0, 35);
so what happens to charselect is fadeValue2 is 36 ?
if 36 is not a valid index, then why don't you do
fadeValue2 = map(fadeValue1, 0, 1023, 0, 35);