A method comprising: receiving a first selection of a first set of a plurality of LED branches (106A, 106B, ...) by a light-emitting
diode (LED)
driver circuit, wherein each of the plurality of LED branches (106A, 106B, ...) is configured to be connected in series with each other and with a buck-
boost converter (104), and wherein the buck-
boost converter (104) is configured to output a
constant current at an adjustable output
voltage; in response to the reception of the first selection: selecting the first set of the plurality of LED branches (106A, 106B, ...) according to the first selection by the
LED driver circuit and by means of a plurality of bypass switches (105A, 105B, ...); supplying the
constant current to the first set of the plurality of LED branches (106A, 106B, ...) by the
LED driver circuit during a first period of a Cycle; Receiving a second selection of a second set of the majority of LED branches (106A, 106B, ...) by the
LED driver circuit, wherein the second selection includes at least one LED
branch of the plurality of LED branches (106A, 106B, ...) that is not in the first selection; and in response to receiving the second selection: selecting the second set of the plurality of LED branches (106A, 106B, ...) according to the second selection by the LED
driver circuit and by means of the plurality of bypass switches (105A, 105B, ...); and digitally modulating the
constant current and supplying the digitally modulated current to the second set of the plurality of LED branches (106A, 106B, ...) by the LED
driver circuit during a second period of the cycle according to a digital
duty cycle. This text has been copied by the DPMA from the original sources. It does not contain any drawings. The tables and formulas may be of unsatisfactory quality.