Have fun sliding the variable and pressing the squares! C= WORK IN PROGRESS: Right now only the NOT gate is made. Later there will be other gates. A logic gate sends out true or false when there are one or two inputs, and depending on the logic gate, will perform an operation using transistors or diodes, or maybe something else. For example, a AND gate sends true only if both inputs are true, and sends out false otherwise. Shown in this project is a visualization of some logic gates.
Logic gates can be used for adding, since all numbers purely inside a computer are in binary. For example an XOR gate is used for the first digit of the sum of two bits, which can be either 0 or 1. An XOR gate sends out true if either input is true, but not both. For adding 0 and 0, the first digit will read 0. For 1, 0 and 0, 1, the digit reads 1. But when you try 1+1, since it will result in an overflow, the digit will go back to 0, and a second digit is needed for the carry 1.