ESP8266 Developer Zone The Official ESP8266 Forum 2016-04-09T18:52:27+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=515 2016-04-09T18:52:27+08:00 2016-04-09T18:52:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=515&p=6393#p6393 <![CDATA[Re: pwm_init bug or lack of documentation?]]> Statistics: Posted by berkutta — Sat Apr 09, 2016 6:52 pm


]]>
2015-06-01T12:30:37+08:00 2015-06-01T12:30:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=515&p=1996#p1996 <![CDATA[Re: pwm_init bug or lack of documentation?]]> support-product@espressif.com to apply for the demo code

Statistics: Posted by costaud — Mon Jun 01, 2015 12:30 pm


]]>
2015-06-01T12:02:04+08:00 2015-06-01T12:02:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=515&p=1995#p1995 <![CDATA[Re: pwm_init bug or lack of documentation?]]>
Andrzej wrote:
Thanks,

It helped me, 4 channel PWM work perfectly but the next question how to set up more PWM channels.
In our application we would like to use the 2x RGBW because the number of ports on the module is sufficient and in the documentation is written:
"It is possible to increase the number of PWM outputs, but it is beyond the scope of this document."

Could you tell me if is it possibe and could you send me a sample code for config additional 4 PWM ports?

Best regards.


1. add GPIO config register in pwm_init()
2. define PWM_CHANNEL to 8.

but you need to change the code in user_light_adj.c,
However , in our latest demo, not released yet , we make it more friendly to modify.

Statistics: Posted by costaud — Mon Jun 01, 2015 12:02 pm


]]>
2015-06-01T06:29:19+08:00 2015-06-01T06:29:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=515&p=1984#p1984 <![CDATA[Re: pwm_init bug or lack of documentation?]]>
It helped me, 4 channel PWM work perfectly but the next question how to set up more PWM channels.
In our application we would like to use the 2x RGBW because the number of ports on the module is sufficient and in the documentation is written:
"It is possible to increase the number of PWM outputs, but it is beyond the scope of this document."

Could you tell me if is it possibe and could you send me a sample code for config additional 4 PWM ports?

Best regards.

Statistics: Posted by Andrzej — Mon Jun 01, 2015 6:29 am


]]>
2015-05-29T11:38:32+08:00 2015-05-29T11:38:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=515&p=1951#p1951 <![CDATA[Re: pwm_init bug or lack of documentation?]]>
Andrzej wrote:
Im trying to initialize PWM in new SDK esp_iot_sdk_v1.1.0_15_05_26

In file pwm.h I found definion
void pwm_init(uint32 period, uint32 *duty,uint32 pwm_channel_num,uint32 (*pin_info_list)[3]);

but in documentation is definion
void pwm_init(uint16 freq, uint8 *duty)

I can't find definion of pin_info_list and all my attempts end in looped restarting module.

Could you send me a sample code for using PWM in new SDK?

Thank you in advance and best regards.


Would you please check the USER_LIGHT.C & USER_LIGHT_ADJ.C in IOT DEMO code in SDK V1.1.0.

We updated and improved the PWM functions and resolution in this SDK.

Statistics: Posted by costaud — Fri May 29, 2015 11:38 am


]]>
2015-05-29T10:36:39+08:00 2015-05-29T10:36:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=515&p=1949#p1949 <![CDATA[pwm_init bug or lack of documentation?]]>
In file pwm.h I found definion
void pwm_init(uint32 period, uint32 *duty,uint32 pwm_channel_num,uint32 (*pin_info_list)[3]);

but in documentation is definion
void pwm_init(uint16 freq, uint8 *duty)

I can't find definion of pin_info_list and all my attempts end in looped restarting module.

Could you send me a sample code for using PWM in new SDK?

Thank you in advance and best regards.

Statistics: Posted by Andrzej — Fri May 29, 2015 10:36 am


]]>