The littleBits XOR module is a logic gate with two inputs. Think of it as “exclusive or,” meaning that it sends an on signal when it’s receiving an on signal exclusively from one input or the other, but not both.
The XOR is great for projects in which the activation requires alternation. Because the output is only true when one input is true, this circuit can be used to make sure that only one event happens at a time. The XOR also works well in scenarios in which you want one button to start an action, and the other button to stop it.