PWM stop issues

scargill
Posts: 70
Joined: Sun Nov 02, 2014 8:09 pm

PWM stop issues

Postby scargill » Thu Aug 20, 2015 11:14 pm

The Espressif PWM works great - very good for RGB 12v LEDs with the addition of 3 MOSFETS - however, when you set the PWM to off - ie all zero values, this does NOT stop the PWM from running. If you try to do anything time-sensitive like RGB serial LEDs you cannot - they will mess up as presumably, interrupts are still running for the PWM.

Can we please have a pwm.stop() function that actually turns off the PWM? I can't imagine it is rocket science??

Pete.

eriksl
Posts: 159
Joined: Fri May 22, 2015 6:22 pm

Re: PWM stop issues

Postby eriksl » Fri Aug 21, 2015 5:07 am

This question has been asked and answered before. It would be preferrable to have a stop function, but the same state should be achievable in another way, which can be found in the original answer ;)

I hate those LED strings that need bit banging on a synchronous clock. They should have used either i2c or spi, which are totally asynchronous.

Who is online

Users browsing this forum: No registered users and 52 guests