pwm_init bug or lack of documentation?
pwm_init bug or lack of documentation?
Postby Andrzej » Fri May 29, 2015 10:36 am
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.
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.
Re: pwm_init bug or lack of documentation?
Postby costaud » Fri May 29, 2015 11:38 am
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.
Re: pwm_init bug or lack of documentation?
Postby Andrzej » Mon Jun 01, 2015 6:29 am
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.
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.
Re: pwm_init bug or lack of documentation?
Postby costaud » Mon Jun 01, 2015 12:02 pm
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.
Re: pwm_init bug or lack of documentation?
Postby costaud » Mon Jun 01, 2015 12:30 pm
Send a mail to support-product@espressif.com to apply for the demo code
Who is online
Users browsing this forum: No registered users and 14 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.