[Mesecons] 4-bit Decoder to 7 Segment Display
removed
FOSS gamedev and creative worlds
https://forums.minetest.org/

---------------------------------------------------------------------------
bit 4 (+8) bit 3 (+4) bit 2 (+2) bit 1 (+1) << indicator lights
---------------------------------------------------------------------------
sbi(D,A) sbi(D,A&B) sbi(D,A&B) sbi(D,A&B) | F |
sbi(D,A) sbi(D,A&B) sbi(D,A&B) sbi(D,!A&B) | E |
sbi(D,A) sbi(D,A&B) sbi(D,!A&B) sbi(D,A&B) | D | O
sbi(D,A) sbi(D,A&B) sbi(D,!A&B) sbi(D,!A&B) | C | U
sbi(D,A) sbi(D,!A&B) sbi(D,A&B) sbi(D,A&B) | B | T
sbi(D,A) sbi(D,!A&B) sbi(D,A&B) sbi(D,!A&B) | A | P
sbi(D,A) sbi(D,!A&B) sbi(D,!A&B) sbi(D,A&B) | 9 | U
sbi(D,A) sbi(D,!A&B) sbi(D,!A&B) sbi(D,!A&B) | 8 | T
sbi(D,A) sbi(D,A&!B) sbi(D,A&B) sbi(D,A&B) | 7 |
sbi(D,A) sbi(D,A&!B) sbi(D,A&B) sbi(D,B&!A) | 6 |
sbi(D,A) sbi(D,A&!B) sbi(D,B&!A) sbi(D,A&B) | 5 |
sbi(D,A) sbi(D,A&!B) sbi(D,B&!A) sbi(D,B&!A) | 4 |
sbi(D,A) sbi(D,A|B) sbi(D,A&!B) sbi(D,A&B) | 3 |
sbi(D,A) sbi(D,A|B) sbi(D,A&!B) sbi(D,B&!A) | 2 |
sbi(D,A) sbi(D,A|B) sbi(D,A|B) sbi(D,A&!B) | 1 |
sbi(D,A) sbi(D,A|B) sbi(D,A|B) sbi(D,!A&!B) | 0 | << the row closest in the image
---------------------------------------------------------------------------
bit 4 (+8) bit 3 (+4) bit 2 (+2) bit 1 (+1) << input buttons
---------------------------------------------------------------------------
^^ the column closest in the image

no need to list every chip, you just have to decide if you want the piston in or out:
POWER ON - (piston out) will hide on 7 segment display
sbi(B,D)sbi(A,C|!D)
POWER OFF - (piston in) will display on 7 segment display
sbi(B,D)sbi(A,C&D)qwrwed wrote:Why is this removed?