Changing designated Software Timer's PWM signal
void st_pwm_width(int $st_id, int $width, int $period)
none
<?php
include "/lib/sd_340.php";
// Changing ST0 as period 100us with 1% duty PWM
st_pwm_setup(0, 0, 1, 100);
for($i = 0; $i < 99; $i++)
{
st_pwm_width(0, 1+$i, 100); // increasing duty cycle by 1%
}
?>