please help me with the button

hei. I have made a lightshow. its a light show i can use at home. but the problem is. the button dosen't work. can anyone help me to program the button into my program. the button pins is 12 and 13.

please help

Ihave made a lightshow. its a light show i can use at home. but the problem is. the button dosen't work. can anyone help me to program the button into my program. the button pins is 12 and 13.

I was tempted to respond in kind to your request simply by answering Yes :wink:

If you do want help you really need to say more about your sketch and what is or is not happening when the button is pressed.

Perhaps post your sketch. If its more than a few lines, it would help if you could remove everything that is not related to the problem. For example, if the problem is that the light show is not starting, replace all the code for the light show with a simple function that lights an LED.

Simplifying the sketch in that way may also help you see yourself where the problem is.

Good luck!

the lightshow works. but the button didn't work. when I pressed the button the lightshow stil work.

can anyone help me with the code. so i can make a button to stop and start the lightshow

Pundai, perhaps my response was too subtle.

We can't read your mind!

If your sketch is short, post it here. If it's a long sketch , remove as much of the sketch as you can before posting so the overall structure can be seen.

Start to solve your problem by writing a separate program which JUST turns an LED on when the button is pressed, and turns it off when the button is not pressed.

When you have that working, you know that the button is working.

THEN you can start to work on how to make what it does part of your bigger program.

Help with the above at...