Reflective IR Unit
Support the following products:
class ReflectiveIRUnit
Constructors
Methods
- ReflectiveIRUnit.get_analog_value() int
This method allows read the ADC value of the Reflective IR Unit and return an integer value. The value ranges from 0 to 65535.
UIFLOW2:
- ReflectiveIRUnit.get_digital_value() int
This method allows read the digital value of the Reflective IR Unit and return an integer value. The value ranges from 0 to 1.
UIFLOW2:
- ReflectiveIRUnit.set_callback(handler, trigger=ReflectiveIRUnit.EVENT_DETECTED | ReflectiveIRUnit.EVENT_NOT_DETECTED) None
Set the callback function for the Reflective IR Unit.
- Parameters:
handler – The callback function to be set.
trigger – The trigger condition for the callback function.
UIFLOW2:
