Library for writing to 74HC595 pins in a easier way.

Hello all!

I've been using Arduino's shiftout library for years, but I'm always annoyed about managing the whole register every time I want to write to a specific pin (usually LEDs or relays).

So I've put together a library that "adds an abstraction layer" to arduino shiftout. It allows you to write to individual pins with a “writePort(1, HIGH)” thingy that imitates Arduino standards.

So far I only tested with Arduino Nano, but I believe to be compatible with practically everything.

If you're interested take a look at: https://theprotoblog.com/site/arduino-libs/easyshiftout/
or download directly from github: GitHub - tiagorosolen/EasyShiftout: Arduino Library for 74hc595 8bit shift register expader

This is my first public library so I really appreciate the community's input on my documentation, organization and code style.

Hope you like it.
Cheers!

Well, you could start by posting links correctly on this forum :wink:

https://theprotoblog.com/site/arduino-libs/easyshiftout/

More advanced features to maybe add in the future:

Remove the 16 register limit. Have the library allocate the necessary memory dynamically using malloc().

Improve performance with larger numbers of registers by allowing use of hardware SPI.

Thank you PaulRB!

Those are good tips. I'll be looking into that.