esp8266 rtos pwm输出

xiaoyao
Posts: 1
Joined: Fri Nov 23, 2018 6:40 pm

esp8266 rtos pwm输出

Postby xiaoyao » Mon Nov 26, 2018 2:02 pm

Hi,
我是个esp8266 rtos的初学者。我现在在做PWM输出波形,当我调用pwm初始化pwm_init()方法就可以输出波形,并不需要调用pwm_start()。 我不清楚这里面的方法调用,请问这种情况是合理的吗?

Code: Select all

uint32 pwm_duty[]={200};
   uint32 io_info[][3]={{PERIPHS_IO_MUX_GPIO4_U,FUNC_GPIO4,4}};   
   pwm_init(1000,pwm_duty,1,io_info);

Who is online

Users browsing this forum: No registered users and 12 guests