loops

Well, the rest is up to you. I gave you the building blocks for driving two separate LEDs on two separate pins, using two separate buttons on your remote. You can fold the actions back to a single pin in which case you will only be controlling one LED, but letting it do two different things ( cmd_one() or cmd_two() ). Either way, the sky is the limit at this point. There are many way to do what you're trying to accomplish, you just have to keep playing, testing, but most of all, have fun with it.