* Z:\tmp\asc_dec_bjh7r6w2\0eaa60bfa46f_CC_led_driver-_best_I_could_find_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
M1 N006 N010 N013 N013 Si7336ADP
M4 N022 N020 N019 N019 AO6407
D6 N022 N023 blue_led
R11 N021 N020 10k
V9 N003 0 PULSE(0 3.791 0 0.05 0.05 0.005 0.01)
R4 N009 N014 1000
V7 N011 0 PULSE(5 0 0 0 0 0.005 0.01)
R6 N019 N026 1000
D4 N003 0 red_led
XU2 N007 N004 N002 N008 N005 level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
V5 N018 0 PULSE(5 0 0 0 0 0.005 0.01)
D5 N003 0 blue_led
Q5 N025 N026 N027 0 NPN
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
* Library below included based on ModelFile attribute of instance XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\UniversalOpAmp2.asy)
.lib UniversalOpAmp2.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2892 1236
WIRE 1232 64 1232 32
WIRE 208 128 208 96
WIRE 2144 128 2032 128
WIRE 2272 128 2144 128
WIRE 2416 128 2272 128
WIRE 176 144 112 144
WIRE 384 160 240 160
WIRE 1232 160 1232 128
WIRE 2032 160 2032 128
WIRE 2144 160 2144 128
WIRE 2272 160 2272 128
WIRE 2416 160 2416 128
WIRE 176 176 0 176
WIRE 208 224 208 192
WIRE 1072 240 1072 -80
WIRE 1440 240 1280 240
WIRE 1552 240 1520 240
WIRE 384 288 384 256
WIRE 2032 288 2032 224
WIRE 2144 288 2144 224
WIRE 2144 288 2032 288
WIRE 2272 288 2272 224
WIRE 2272 288 2144 288
WIRE 2416 288 2416 240
WIRE 2416 288 2272 288
WIRE 1232 304 1232 256
WIRE 1072 352 1072 320
WIRE 1168 352 1072 352
WIRE 384 384 384 352
WIRE 1232 400 1136 400
WIRE 496 432 448 432
WIRE 624 432 576 432
WIRE 112 480 112 144
WIRE 1088 656 1088 624
WIRE 1248 656 1088 656
WIRE 1248 672 1248 656
WIRE 1440 688 1296 688
WIRE 1568 688 1520 688
WIRE 1568 704 1568 688
WIRE 1248 800 1248 768
WIRE 1248 896 1248 864
WIRE 1088 976 1088 656
WIRE 1456 976 1296 976
WIRE 1248 1040 1248 992
WIRE 1088 1088 1088 1056
WIRE 1184 1088 1088 1088
WIRE 1248 1136 1152 1136
SYMBOL nmos 1280 160 M0
SYMATTR InstName M1
SYMATTR Value Si7336ADP
SYMBOL pmos 1296 768 R180
SYMATTR InstName M4
SYMATTR Value AO6407
SYMBOL diode 1232 800 R0
SYMATTR InstName D6
SYMATTR Value blue_led
SYMBOL res 1536 672 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R11
SYMATTR Value 10k
SYMBOL voltage 2416 144 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V9
SYMATTR Value PULSE(0 3.791 0 0.05 0.05 0.005 0.01)
SYMBOL res 1056 224 R0
SYMATTR InstName R4
SYMATTR Value 1000
SYMBOL voltage 1552 224 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V7
SYMATTR Value PULSE(5 0 0 0 0 0.005 0.01)
SYMBOL res 1072 960 R0
SYMATTR InstName R6
SYMATTR Value 1000
SYMBOL diode 2016 160 R0
SYMATTR InstName D4
SYMATTR Value red_led
SYMBOL Opamps\\UniversalOpamp2 208 160 R0
SYMATTR InstName U2
SYMBOL voltage 624 416 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V5
SYMATTR Value PULSE(5 0 0 0 0 0.005 0.01)
SYMBOL diode 2256 160 R0
SYMATTR InstName D5
SYMATTR Value blue_led
SYMBOL npn 1184 1040 R0
SYMATTR InstName Q5
FLAG 208 304 0
FLAG 208 16 0
FLAG 624 288 0
FLAG 624 512 0
FLAG 1552 320 0
FLAG 1552 48 0
FLAG 2416 288 0
FLAG 1088 1184 0
FLAG 1248 1216 0
FLAG 1568 784 0