But I am having problems adding PWM control, I have copied some of the IoT example code and am calling pwm_init, pwm_start and user_light_set_duty all with parameters copied from the example. It is doing something as the pins I am setting now pulse at aprox 1msec intervals, but the pulse is only 2.5usec wide and does not alter. The pulses are also intermittent there for a second gone for 2 as a regular patten.
I am guessing this is a conflict with some other timer setup, but removing everything else in user_init made no difference.
Has anyone got pwm working with httpd?
Is there any default timer config I need to disable?
If I am right about timer clashes can I run httpd without a timer?
Thanks