ShiftRegister-PWM-Library
ShiftRegister-PWM-Library copied to clipboard
Arduino library that makes shift register pins PWM capable
I am up to use this IC for a PWM. Do I have to use exact pins? Or I can use any of the digitals from UNO?
Right now there is a memory leak present because the allocated memory is not freed in the object destructor.
Just a few quick thoughts: - Multi statement macros (e.g. _ShiftRegisterPWM_toggleClockPinTwice_) should be written using _do{"statements"}while(0)_. - Consider _calloc_ in the _ShiftRegisterPWM_ to allocate and clear the memory at the...
Hi @Simsso, this library is excellent and very easy to use. Very well documented on your blog too. May I ask if it is safe to use with the ESP32...
Your optimized version of the `shiftOut` function uses 8 conditional branches. It should be possible to write a faster version without if-branches. Something like this should work (not tested): ```c...