by fredk1 » Wed Mar 06, 2013 10:10 am
Thanks for helping me with the "code" tab.
As to your comment, I start LED (blue) at full brightness and then dim it down at the beginning of the loop. As it fades down, LED2 (green) fades in. Visually this is a smooth transition, as is the fade down of LED2 (green) and the fade up of LED3 (red). The LED3 fade down is also smooth as is the fade back up of LED (blue) at the end of the loop. At the end of the loop, LED should be back at 255, full brightness. The visual pulse happens when it goes back to the beginning of the loop, blue pulses on and off again. So I guess my question is, when the sketch runs, does it loop through the "loop" only, or does it loop through the entire sketch? (Then I would be resetting LED to 0.) Could it also be just a poor use of the "for" condition? Any help would be greatly appreciated. This is the first step in a larger project.
Thanks.