The ATtiny85 is a complete computer system-on-a-chip with enormous capabilities in a very tiny package. It is easy to run out of General Purpose Input Output pins. Here is an approach that may let you get more functionality out of these pins.
If you are interested, please, click here.
Your comments are welcome. All of us are smarter than any one of us.