View Single Post
  #2   Spotlight this post!  
Unread 13-12-2011, 21:10
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
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?