Hey guys, first time poster but I've gotten a lot of help from these boards so thanks to anyone who has posted.
I'm looking for some help with an issue I haven't seen addressed anywhere here.
I have a project where I have multiple push-button inputs to an Arduino, where each controls it's own colored LED (mapped digital-in to digital-pwm-out). Currently I have a working project where each switch turns the LED on/off. My problem is that I need a way to turn all of the other LEDs off when one of the push-button switches is pressed (i.e. only one color will be running at a time). This is giving me issues because pressing a second switch obviously will not physically turn the first switch off, and as this is for a young woman with cerebral palsy, I can not depend on her to switch it off herself. I tried just using a simple if/else solution, but that did not work at all, and I'm giving myself a headache trying to think of an effective way to do this.
I'm open to either component or programming solutions. Thanks a ton in advance!