jandelgado / jled

Non-blocking LED controlling library for Arduino and friends.
MIT License
324 stars 51 forks source link

Simulate PWM for all pins to enable PWM for all pins without hardware PWM #125

Closed danyhm closed 8 months ago

danyhm commented 8 months ago

Hello,

The Breathe function only works for pins that support PWM at the hardware level. similarly, the FadeIn and FadeOut functions do the same.

it's possible to simulate the PWM using GPIO to set and reset the pin at correct intervals to achieve the same thing. pros are the effects can be used for all pins and cons are that more processing and space is consumed.

danyhm commented 8 months ago

duplicate of #107