Sample code sending PWM signals