Hi,
There is wrong sketch on Slider example.
Hello. This is correct sketch for slider. You can directly control PWM pins without single line of code.