To activate segments, use the following format:
display1 = 0b1111111 display2 = 0b0000000
Each bit represents a segment (from top to bottom, left to right). 1 means on, 0 means off.
The 7 segment display is coded using a 7-bit binary number. Each bit corresponds to a segment:
0 5 1 6 4 2 3
For example, to display the number 3, you would use: 0b1111001
Experiment with different combinations to create numbers and letters. Here are some examples:
For more advanced simulations and circuit designs, visit our Advanced Simulations page.