A Shift Register Controller simple API for the 74hc595 adapted to small projects.
Copyright (C) 2023 ollprogram
SimpleShiftRegisterController is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SimpleShiftRegisterController is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SimpleShiftRegisterController. If not, see https://www.gnu.org/licenses/.
I made a very simple API in order to control a Shift Register like the 74hc595 without repeating the same code each time. This API also allows you to control multiple 74hc595 in cascade connection. If you want your program to use less heap memory, use version 1.0.1 instead of 1.1.0.
All examples are available here
You can set all bits by using a the display method with an integer (only working for less than 8 registers) or with a bit array. See the related examples :
Or you can also control bits of the shift register yourself bit by bit. See the related examples :
You can find and download the zip file in the releases.
On arduino IDE select 'sketch > include library > add .ZIP library'