pub const SATURATION_RAW: u32 = 12_288;Expand description
Raw count above which the reading is clamped: 12288, which is 2.7 V and three-quarters of full scale.
A judgement call rather than a measurement, and deliberately not either of the two numbers it sits between:
- A bright flashlight drives the node to 13478 counts (2.96 V of a 3.3 V rail) and no further. That is the hard rail, where the reading stops responding to light altogether; sitting the clamp right on it leaves no margin for part-to-part or temperature variation in where it lands.
- Seeed clamps at 11287 (2.48 V), which is arbitrary and throws away range the part demonstrably has.
Between them, 2.7 V keeps a margin below the rail while retaining most of the range. Everything above it reports the same clamped maximum, which is the honest answer for a sensor that can no longer tell those levels apart.