It is realized by controlling the switches, 4 diodes emit light in 20W mode, and all 8 diodes emit light in 40W mode.