S0/S1 ↔ MCU.IO (Output frequency scaling selection inputs)
S2/S3 ↔ MCU.IO (Photodiode type selection inputs)
S0/S1 selects the output frequency scaling factor, S2/S3 selects the color filter of red, green, blue, then OUT outputs a square wave with frequency proportional to the selected color intensity. The detected color can be determined by the ratio of the intensity of red, green and blue.
Note:
Avoids environment light noise
White balance is required when the first time using the module, reseting the module, or changing the light source