I would like to be able to have say 5 LEDs that I can toggle each on individually. For example, I would like to tell it to turn on the first three or every other one on, but keep the other ones off. I don't want it to be limited by the number of output pins I have on my pi 2, so I am guessing the best way is to do it with I2C or SPI. I just don't really know how to go about doing it. I am guessing it involves a decoder and several flip flops or maybe I am completely wrong and there is an easier way. Any suggestions?
Thanks for your help, I'm new to pi.