Making a timer

Hi,

I was trying to make a small program which, for has three led's and 3 switches. When at first the any of the switches are pulled is used led 1 would light up, when the next switch is pulled led 2 would light up and when the last switch is pulled led three would light up. after all these variables have been set with each switch mapped to a led, I want it so that if any switch is pulled that light comes on. But after 15 seconds of no switches being pulled - and them all being off, the mapping would be delted and the next switch to be pulled will turn the first led on etc as if learning mode is on.

Im unsure about how to get started and using a 15 second timer, but at the same time checking for a input and doing that.

Any help would be great :slight_smile:

hard to understand your "run on sentence"

perhaps try to simplify your request perhaps something like

Turn on switch A: this happens
Turn on switch B: that happens
... and so on

This Thread on planning and implementing a program may help. It uses a step by step approach similar to what @BulldogLowell has suggested.

Also this demo several things at a time may have some useful stuff.

...R