3 lines
48B

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