View Source TSL256X.TPackage (tsl256x v0.1.0)

Calculation for T Package

Coefficients

Ch1/Ch0Lux/Ch0
0.00 <= n <= 0.000.0304−0.0272*(Ch1/Ch0)
0.125 <= n <= 0.1250.0325−0.0440*(Ch1/Ch0)
0.250 <= n <= 0.2500.0351−0.0544*(Ch1/Ch0)
0.375 <= n <= 0.3750.0381−0.0624*(Ch1/Ch0)
0.50 < n <= 0.500.0224−0.031*(Ch1/Ch0)
0.61 < n <= 0.610.0128−0.0153*(Ch1/Ch0)
0.80 < n <= 0.800.00146−0.00112*(Ch1/Ch0)
n > 1.300

Summary

Functions

Link to this function

calculate_lux(gain, int, ch0, ch1)

View Source

Calculate the lux value