import hal hal.pwm['t1'].duty_cycle=1000/20000