Fragrance
Advanced Member level 4
- Joined
- Jul 26, 2002
- Messages
- 1,190
- Helped
- 248
- Reputation
- 496
- Reaction score
- 202
- Trophy points
- 1,343
- Location
- East Of Earth
- Activity points
- 8,933
thanks rajat bhai
i have written the code for RGB led using pwm. each leg is connected with individual pin of timer 0 & 1 (using ocr0, ocr1a, ocr1b). & it is working ok. but i just want to change the color sequence using a button switch. i have written code for each color using diffrent functions. now i just want to press the button & change the color. i just want to know that how a switch will react after each press. please send me a code for working of switch
thanks
for better idea and good technique please check out these pages with working code
http://picprojects.org.uk/projects/bigmosfetrgb/index.htm
http://picprojects.org.uk/projects/rgb2/index.htm
http://picprojects.org.uk/projects/simplergb/index.htm
**broken link removed**
regards
Fragrance