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