With this circuit it is possible to control two-color LEDs, measuring the color of each one in a combined way across the width of the pulses. The circuit can work with higher voltages, changing resistors R3 and R4 according to the current of the LEDs.