timer 指定timer输出pwm
timer_id -- 定时器号(0-5)
port -- PWM输出管脚
period_ns -- PWM周期
duty_ns -- 高电平时间
成功返回使用的定时器ID,失败返回-1