hardware_pwm updated takes in array of vals