* SPICE netlist
Q1 N001 N005 0 0 2N3904
Q2 N008 N009 0 0 2N3904
Q3 N003 N002 0 0 2N3904
Q4 N006 N007 0 0 2N3904
Q5 CB-H N004 0 0 2N3904
R1 N005 PIO1 10k
R2 N009 PIO0 10k
R3 N002 N001 6.8k
R4 N002 PIO0 6.8k
R5 N004 N003 4.7k
R6 N004 N006 4.7k
R7 N007 PIO1 6.8k
R8 N007 N008 6.8k
R9 N008 +5V 1k
R10 N001 +5V 1k
R11 N003 +5V 1k
R12 CB-H +5V 1k
R13 N006 +5V 1k
D1 CB-H 0 D
V1 +5V 0 5
V2 PIO1 0 PULSE(0 3 0 1n 1n 5m 10m)
V3 PIO0 0 PULSE(0 3 2.5m 1n 1n 5m 10m)
.tran 50m

* LTspice schematic (.asc)
Version 4
SHEET 1 2224 752
WIRE 552 -376 120 -376
WIRE 952 -376 552 -376
WIRE 1032 -376 952 -376
WIRE 1112 -376 1032 -376
WIRE 120 -344 120 -376
WIRE 552 -344 552 -376
WIRE 952 -344 952 -376
WIRE 952 -216 952 -264
WIRE 1064 -216 952 -216
WIRE 1112 -216 1064 -216
WIRE 120 -200 120 -264
WIRE 280 -200 120 -200
WIRE 424 -200 360 -200
WIRE 552 -200 552 -264
WIRE 696 -200 552 -200
WIRE 840 -200 776 -200
WIRE 1064 -168 1064 -216
WIRE 120 -152 120 -200
WIRE 552 -152 552 -200
WIRE 952 -152 952 -216
WIRE -168 -104 -264 -104
WIRE -136 -104 -168 -104
WIRE 56 -104 -56 -104
WIRE 424 -104 424 -200
WIRE 488 -104 424 -104
WIRE 840 -104 840 -200
WIRE 888 -104 840 -104
WIRE -1112 -72 -1112 -104
WIRE -984 -72 -984 -104
WIRE -856 -72 -856 -104
WIRE 1064 -72 1064 -104
WIRE 280 -56 184 -56
WIRE 424 -56 424 -104
WIRE 424 -56 360 -56
WIRE 696 -56 664 -56
WIRE 840 -56 840 -104
WIRE 840 -56 776 -56
WIRE 120 -24 120 -56
WIRE 552 -24 552 -56
WIRE 952 -24 952 -56
WIRE 184 24 184 -56
WIRE 184 24 -152 24
WIRE -1112 40 -1112 8
WIRE -984 40 -984 8
WIRE -856 40 -856 8
WIRE 552 56 120 56
WIRE 1032 56 1032 -376
WIRE 1032 56 552 56
WIRE -168 72 -168 -104
WIRE 232 72 -168 72
WIRE 552 104 552 56
WIRE 120 120 120 56
WIRE 232 200 232 72
WIRE 280 200 232 200
WIRE 408 200 360 200
WIRE 552 216 552 184
WIRE 664 216 664 -56
WIRE 664 216 552 216
WIRE 120 232 120 200
WIRE 232 232 120 232
WIRE 120 248 120 232
WIRE 552 248 552 216
WIRE -152 296 -152 24
WIRE -152 296 -264 296
WIRE -136 296 -152 296
WIRE 56 296 -56 296
WIRE 408 296 408 200
WIRE 488 296 408 296
WIRE 232 344 232 232
WIRE 280 344 232 344
WIRE 408 344 408 296
WIRE 408 344 360 344
WIRE 120 376 120 344
WIRE 552 376 552 344
FLAG 120 -24 0
FLAG 552 -24 0
FLAG 952 -24 0
FLAG 1064 -72 0
FLAG 120 376 0
FLAG 552 376 0
FLAG 1112 -376 +5V
IOPIN 1120 -192 In
FLAG 1112 -216 CB-H
IOPIN 1120 -32 In
FLAG -264 -104 PIO1
IOPIN -256 80 In
FLAG -264 296 PIO0
IOPIN -256 480 In
FLAG -1112 40 0
FLAG -984 40 0
FLAG -1112 -104 +5V
IOPIN -1104 80 In
FLAG -984 -104 PIO1
IOPIN -976 80 In
FLAG -856 40 0
FLAG -856 -104 PIO0
IOPIN -848 80 In
SYMBOL npn 56 -152 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL npn 56 248 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL npn 488 -152 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL npn 488 248 R0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL npn 888 -152 R0
SYMATTR InstName Q5
SYMATTR Value 2N3904
SYMBOL res -40 -120 R90
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL res -40 280 R90
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL res 376 -216 R90
SYMATTR InstName R3
SYMATTR Value 6.8k
SYMBOL res 376 -72 R90
SYMATTR InstName R4
SYMATTR Value 6.8k
SYMBOL res 792 -216 R90
SYMATTR InstName R5
SYMATTR Value 4.7k
SYMBOL res 792 -72 R90
SYMATTR InstName R6
SYMATTR Value 4.7k
SYMBOL res 376 184 R90
SYMATTR InstName R7
SYMATTR Value 6.8k
SYMBOL res 376 328 R90
SYMATTR InstName R8
SYMATTR Value 6.8k
SYMBOL res 136 216 R180
SYMATTR InstName R9
SYMATTR Value 1k
SYMBOL res 136 -248 R180
SYMATTR InstName R10
SYMATTR Value 1k
SYMBOL res 568 -248 R180
SYMATTR InstName R11
SYMATTR Value 1k
SYMBOL res 968 -248 R180
SYMATTR InstName R12
SYMATTR Value 1k
SYMBOL res 568 200 R180
SYMATTR InstName R13
SYMATTR Value 1k
SYMBOL LED 1048 -168 R0
SYMATTR InstName D1
SYMBOL voltage -1112 -88 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -984 -88 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 3 0 1n 1n 5m 10m)
SYMBOL voltage -856 -88 R0
SYMATTR InstName V3
SYMATTR Value PULSE(0 3 2.5m 1n 1n 5m 10m)