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