Thank you for your reply PaulS,
The button I mentioned is one of the three buttons on the breadboard. These buttons are wired as shown on the official Arduino tutorials site.
- If I push the button on the breadboard for the white LED's the lights stay on. As soon as I release the button the lights go out. It doesnt matter how long I keep the button 'on'. The white light, when turned on, flickers a little bit. They never go totally off but seem to illumnate a little less. That doesnt happen when it is USB powered.
- If I push the RGB button on the breadboard the RGB LED goes on, if I release it turns off. As you have seen in my code there are 6 colors programmed, but when I push the button it always starts with the first color.
- The third button is an OFF button, but thats not relevant at the moment.
The LED's are:
- White = 5mm, 3.4V, 20mA connected with 100 Ohm resistor.
- RGB = 5mm, 2.0V, 3.2V, 3.2V, (cant find the)mA connected with 2x100 ohm and 180 Ohm resistor.
In the time that I am writing this reply (approx 10 min) nothing on the board became hot, so that should be fine I guess.
Code improvements I want to do is get rid of the delay() thing by making the buttons a onRelease button. I found a tutorial for that, but didnt implement it yet. 8-)
I hope you can think of something I did wrong here
