I'm using the 74hc595 serial to parallel quite a bit in various projects (Great for giving loads of outputs) in connection with LEDs, for indication of status, or via transistor/diode/relay for mains & other high voltage(i.e. over 5 volt.). To save re-writing the same piece of code time and time again, I learned how to create a library. So here it is :4 parts (3 for library, to go into a folder called Binstop in your libraries folder) and an example.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

See file LICENSE.txt for further informations on licensing terms.

CommandsBinstop ***(latch,clock,data);***.fade(mask,end,time);***.allon();***.alloff();***.set(mask);All self evidentReleased to the wilds, use and abuse any way you want.

That's pretty interesting. I'm more interested in the library than the shift register, though. I don't quite understand how all the files go together. Where is a good place to get some hand-holding on how building a library is done? I may want to try it some day.

Hi, flyboy, I'll try and knock up a mini tutorial on how I made this one. I used info from the internet (Arduino.cc , Google, and Dogpile) to learn how to create it, just got to get my notes sorted. Hopefully be done today (its 13:48 in the UK just now).