* SPICE netlist
D1 A N005 LED
C1 A K 1p
V1 N005 K 0
R2 ta S 1.5k
C2 ta S 1n
B2 S ta I=TABLE(I(V1), 0,0,5m,5m)
C10 A N001 0.1p
C11 K S 0.1p
C5 C ga 5p
C6 C S 10p
R3 ga S 1k
C3 ga S 10p
Q1 C ga S 0 NPN1
Q2 N004 N003 N001 0 PNP1
R1 N004 ga 2k
R4 N001 N003 10k
R5 N003 N006 10k
S1 S N006 ta S SW1
B1 N001 S V=limit(0, V(V+,S)-1, 3)
R6 V+ S 10k
C4 N001 N003 20p
D2 ta N002 Dd1
V2 N002 S 1

* LTspice schematic (.asc)
Version 4
SHEET 1 1776 496
WIRE -840 -184 -888 -184
WIRE -760 -184 -840 -184
WIRE -696 -184 -760 -184
WIRE -200 -184 -632 -184
WIRE -120 -184 -200 -184
WIRE -8 -184 -120 -184
WIRE 152 -184 -8 -184
WIRE 568 -184 440 -184
WIRE 696 -184 696 -248
WIRE 696 -184 568 -184
WIRE 824 -168 824 -232
WIRE -200 -152 -200 -184
WIRE -120 -152 -120 -184
WIRE 152 -120 152 -184
WIRE -488 -104 -584 -104
WIRE -8 -88 -8 -184
WIRE -488 -72 -488 -104
WIRE -584 -56 -584 -104
WIRE 440 -56 440 -184
WIRE -200 -40 -200 -88
WIRE -120 -40 -120 -72
WIRE -120 -40 -200 -40
WIRE -72 -40 -120 -40
WIRE -120 -8 -120 -40
WIRE -840 8 -840 -184
WIRE -760 8 -760 -184
WIRE 568 8 568 -184
WIRE 696 24 696 -184
WIRE -488 56 -488 -8
WIRE -456 56 -488 56
WIRE -376 56 -456 56
WIRE -296 56 -376 56
WIRE -184 56 -296 56
WIRE -8 56 -8 8
WIRE 24 56 -8 56
WIRE 200 56 104 56
WIRE 312 56 200 56
WIRE 440 56 440 8
WIRE 440 56 312 56
WIRE 504 56 440 56
WIRE -488 104 -488 56
WIRE -376 104 -376 56
WIRE -760 120 -760 72
WIRE -296 120 -296 56
WIRE -120 120 -120 72
WIRE 312 120 312 56
WIRE 440 120 440 56
WIRE -184 136 -184 56
WIRE -168 136 -184 136
WIRE -168 184 -184 184
WIRE -840 232 -840 72
WIRE -840 232 -888 232
WIRE -760 232 -760 200
WIRE -760 232 -840 232
WIRE -696 232 -760 232
WIRE -584 232 -584 24
WIRE -584 232 -632 232
WIRE -488 232 -488 184
WIRE -488 232 -584 232
WIRE -376 232 -376 184
WIRE -376 232 -488 232
WIRE -296 232 -296 184
WIRE -296 232 -376 232
WIRE -184 232 -184 184
WIRE -184 232 -296 232
WIRE -120 232 -120 200
WIRE -120 232 -184 232
WIRE 152 232 152 -40
WIRE 152 232 -120 232
WIRE 312 232 312 200
WIRE 312 232 152 232
WIRE 440 232 440 184
WIRE 440 232 312 232
WIRE 568 232 568 104
WIRE 568 232 440 232
WIRE 696 232 696 88
WIRE 696 232 568 232
WIRE 824 232 824 -88
WIRE 824 232 696 232
WIRE 888 232 824 232
FLAG -888 -184 A
IOPIN -144 128 In
FLAG -888 232 K
IOPIN -144 544 In
FLAG 888 232 S
IOPIN 1632 544 In
FLAG 696 -248 C
IOPIN 1440 64 In
FLAG 200 56 ga
FLAG -456 56 ta
FLAG 824 -232 V+
IOPIN 1568 80 In
SYMBOL diode -776 8 R0
SYMATTR InstName D1
SYMATTR Value LED
SYMBOL cap -856 8 R0
SYMATTR InstName C1
SYMATTR Value 1p
SYMBOL voltage -760 104 R0
SYMATTR InstName V1
SYMATTR Value 0
SYMBOL res -392 88 R0
SYMATTR InstName R2
SYMATTR Value 1.5k
SYMBOL cap -312 120 R0
SYMATTR InstName C2
SYMATTR Value 1n
SYMBOL bi2 -488 104 R0
SYMATTR Value I=TABLE(I(V1), 0,0,5m,5m)
SYMATTR InstName B2
SYMBOL cap -696 -168 R270
SYMATTR InstName C10
SYMATTR Value 0.1p
SYMBOL cap -696 248 R270
SYMATTR InstName C11
SYMATTR Value 0.1p
SYMBOL cap 424 -56 R0
SYMATTR InstName C5
SYMATTR Value 5p
SYMBOL cap 680 24 R0
SYMATTR InstName C6
SYMATTR Value 10p
SYMBOL res 296 104 R0
SYMATTR InstName R3
SYMATTR Value 1k
SYMBOL cap 424 120 R0
SYMATTR InstName C3
SYMATTR Value 10p
SYMBOL npn 504 8 R0
SYMATTR InstName Q1
SYMATTR Value NPN1
SYMBOL pnp -72 8 M180
SYMATTR InstName Q2
SYMATTR Value PNP1
SYMBOL res 8 72 R270
SYMATTR InstName R1
SYMATTR Value 2k
SYMBOL res -136 -168 R0
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL res -136 -24 R0
SYMATTR InstName R5
SYMATTR Value 10k
SYMBOL sw -120 216 M180
SYMATTR InstName S1
SYMATTR Value SW1
SYMBOL bv 152 -136 R0
SYMATTR InstName B1
SYMATTR Value V=limit(0, V(V+,S)-1, 3)
SYMBOL res 808 -184 R0
SYMATTR InstName R6
SYMATTR Value 10k
SYMBOL cap -216 -152 R0
SYMATTR InstName C4
SYMATTR Value 20p
SYMBOL diode -504 -8 M180
SYMATTR InstName D2
SYMATTR Value Dd1
SYMBOL voltage -584 -72 R0
SYMATTR InstName V2
SYMATTR Value 1