Okay, so I have my arduino wired up with 6 buttons (digital pins 2-7) lighting up 6 LEDs (pins 7-13). When I press each button it successfully lights up its corresponding LED. This is for a science museum showing how different chemicals in fireworks light up different color. So if you press button 1 with A chemical, it will light up blue. Button 2 with chemical B will light up Red and so on. I now need to add combinations, so for example if you press button 1 it will light up LED 1, press button 2 it will light up LED 2, but if you press 1 and 2 together it lights up only LED 3, purple. Does anyone know how I can program these combinations? I hope I explained that well enough, if not I will be happy to clarify further. My code is attached below.
Fireworks_25.ino (3.28 KB)