Kreuzschaltung mit 4 Schalter. KV-Diagram in Code umgesetzt.
Cross connection with 4 switches
Boolean operation table and Karnaugh-Veitch-Symmetrie-Diagramm
Output =(A۸B۸¬C۸D)۷(¬A۸B۸C۸D)۷(A۸B۸C۸¬D)۷(¬A۸B۸¬C۸¬D)۷(A۸¬B۸¬C۸¬D)۷(¬A۸¬B۸C۸¬D)۷ (A۸¬B۸C۸D)۷(¬A۸¬B۸¬C۸D)
Wiring
I know it's an Arduino but for illustration enouth :P