You set the value "brightness" outside the for loop...so it never changes. Either move it inside the loop or change your analogWrite to use pwmVals directly.
Steve
You set the value "brightness" outside the for loop...so it never changes. Either move it inside the loop or change your analogWrite to use pwmVals directly.
Steve