Logic Gates are bricks used to carry and alter binary logical signals.
Logic Gates can be linked to receive input(s) from Buttons, Switches, Sensors, Sliders, Timers and other Logic Gates. A Logic Gate processes one or more inputs to produce an output. The face of the Logic Gate brick indicates the type. The type can be set by interacting with the gate.
Types of Gate[ | ]
OR[ | ]
Will activate if any Input is active.
x | y | = | z |
---|---|---|---|
0 | 0 | 0 | |
0 | 1 | 1 | |
1 | 0 | 1 | |
1 | 1 | 1 |
AND[ | ]
Will activate if all Inputs are active.
x | y | = | z |
---|---|---|---|
0 | 0 | 0 | |
0 | 1 | 0 | |
1 | 0 | 0 | |
1 | 1 | 1 |
XOR[ | ]
Will activate if an odd number of inputs are active
x | y | = | z |
---|---|---|---|
0 | 0 | 0 | |
0 | 1 | 1 | |
1 | 0 | 1 | |
1 | 1 | 0 |
NOR[ | ]
Will activate if all Inputs are inactive.
x | y | = | z |
---|---|---|---|
0 | 0 | 1 | |
0 | 1 | 0 | |
1 | 0 | 0 | |
1 | 1 | 0 |
NAND[ | ]
Will activate if any Input is inactive.
x | y | = | z |
---|---|---|---|
0 | 0 | 1 | |
0 | 1 | 1 | |
1 | 0 | 1 | |
1 | 1 | 0 |
XNOR[ | ]
Will activate if an even number of inputs are active
x | y | = | z |
---|---|---|---|
0 | 0 | 1 | |
0 | 1 | 0 | |
1 | 0 | 0 | |
1 | 1 | 1 |