Definition at line 14 of file SRF02.h.
◆ SRF02() [1/2]
SRF02::SRF02 |
( |
int |
deviceId, |
|
|
int |
mode |
|
) |
| |
Initialize SRF02.
- Parameters
-
deviceId | The I2C device id |
mode | Wether sensor values are read as inches, centimeters or miliseconds |
Definition at line 8 of file SRF02.cpp.
◆ SRF02() [2/2]
◆ getDistance()
int SRF02::getDistance |
( |
| ) |
|
Get the sensor distance value.
- Returns
- The distance value
Definition at line 21 of file SRF02.cpp.
◆ _deviceId
I2C device id
Definition at line 42 of file SRF02.h.
◆ _mode
Measurement mode
Definition at line 44 of file SRF02.h.
The documentation for this class was generated from the following files: