setInverted

open fun setInverted(inverted: Boolean)

Sets the inversion state of the sensor.

Parameters

inverted

whether to invert the readings, default is true as using this class implies that the sensor needs to be inverted initially for all readings to be correct