sensor.distance.vl53l1x
Platypush documentation
sensor.distance.vl53l1x
- class platypush.backend.sensor.distance.vl53l1x.SensorDistanceVl53L1XBackend(short=True, medium=False, long=False, **kwargs)[source]
Bases:
SensorBackend
Backend to poll an VL53L1x laser ranger/distance sensor
Requires:
smbus2
(pip install smbus2
)vl53l1x
(pip install vl53l1x
)
Triggers:
platypush.message.event.sensor.SensorDataChangeEvent
if the measurements of a sensor have changedplatypush.message.event.sensor.SensorDataAboveThresholdEvent
if the measurements of a sensor havegone above a configured threshold
platypush.message.event.sensor.SensorDataBelowThresholdEvent
if the measurements of a sensor havegone below a configured threshold