|
Re: Arduino help -RGB LED
Well, I'm not much of a programmer either, but what happens, exactly, after you press the button once?
What I see is that you trigger the IF for 1 press. After you go through all those later IF statements for the various fades, then what happens? I think the program doesn't know what to do after the first cycle of fades.
Also, when exactly is the button read in? Can the program get there again during normal runtime? If it can't, then it can't read the button any more and it will appear to be not working.
One thing that works for me is to manually walk through the code with paper to help keep track. It may take an hour, but bugs will be more obvious.
__________________
I am N2IRZ - What's your callsign?
|