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
Diff: main.cpp
- Revision:
- 0:1b90d953ef92
- Child:
- 1:51299916db3e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Nov 13 13:52:25 2019 +0000 @@ -0,0 +1,15 @@ +#define BUTTON1 p14 +#include "mbed.h" +// Flash an LED while a DigitalIn is true + +DigitalIn enable(BUTTON1); +DigitalOut led(LED1); + +int main() { + while(1) { + if(enable) { + led = !led; + } + wait(0.25); + } +} \ No newline at end of file