Analogue electronics have a continuous variable signal
Digital electronics represent signals that only take two values: one near ground and one near the supply voltage, corresponding to the “false” (0) and “true” (1) values of the boolean domain respectively
Logic gates are circuits containing transistors and other components
Logic gates
NOT A: if A is low, NOT A is high, else, it is low
A AND B: if A is low, A AND B is low, else, it is B
A OR B: if A is high, A AND B is high, else, it is B
A NAND B: if A is low, A NAND B is high, else, it is NOT B
A NOR B: if A is high, A NOR B is high, else, it is NOT B