View Source TSL256X.CSPackage (tsl256x v0.1.0)

Calculation for CS Package

Coefficients

Ch1/Ch0Lux/Ch0
0 <= n <= 0.130.0315−0.0262*(Ch1/Ch0)
0.13 <= n <= 0.260.0337−0.0430*(Ch1/Ch0)
0.26 <= n <= 0.390.0363−0.0529*(Ch1/Ch0)
0.39 <= n <= 0.520.0392−0.0605*(Ch1/Ch0)
0.52 < n <= 0.650.0229−0.0291*(Ch1/Ch0)
0.65 < n <= 0.800.00157−0.00180*(Ch1/Ch0)
0.80 < n <= 1.300.00338−0.00260*(Ch1/Ch0)
n > 1.300

Summary

Functions

Link to this function

calculate_lux(gain, int, ch0, ch1)

View Source

Calculate the lux value