Package com.diozero.devices
Interface DistanceSensorInterface
-
- All Superinterfaces:
AutoCloseable
,DeviceInterface
,SensorInterface
- All Known Implementing Classes:
GP2Y0A21YK
,HCSR04
,HCSR04UsingEvents
,HCSR04UsingWait
,VL6180
public interface DistanceSensorInterface extends SensorInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getDistanceCm()
-
Methods inherited from interface com.diozero.api.DeviceInterface
close
-
-
-
-
Method Detail
-
getDistanceCm
float getDistanceCm() throws RuntimeIOException
- Returns:
- distance in cm
- Throws:
RuntimeIOException
-
-