On 26/11/2024 15:00, Per-Daniel Olsson wrote: > + > +The driver supports scaled values for red, green and blue. The raw values are > +scaled so that for a particular test light source, typically white, the > +measurement intensity is the same across the different color channels. This is > +calculated in the following way: > + > +R = RED_RAW x 2.4 > +G = GREEN_RAW x 1.0 > +B = BLUE_RAW x 1.3 > + > +The values are accessed from: > +/sys/bus/iio/devices/iio:deviceX/in_intensity_red_scale > +/sys/bus/iio/devices/iio:deviceX/in_intensity_green_scale > +/sys/bus/iio/devices/iio:deviceX/in_intensity_blue_scale > + > +The data sheet suggests using the scaled values to normalize the scaled R, G > +and B values. This is useful to get a value for the ratio between colors > +independent of light intensity. A userspace appliction can do this in the > +following way: > + > +R_NORMALIZED = R / (R + G + B) > +G_NORMALIZED = G / (R + G + B) > +B_NORMALIZED = B / (R + G + B) > + > +See section 8.4.5.2 in the data sheet for additional details. > \ No newline at end of file You still have patch warnings. Best regards, Krzysztof