|
| | Distance (gpio_num_t trigger, gpio_num_t echo) |
| | Construct a new Distance object (init with trigger and echo)
|
| |
| float | getDistance () |
| | Returns the distance of the sensor.
|
| |
◆ Distance()
| Distance::Distance |
( |
gpio_num_t | trigger, |
|
|
gpio_num_t | echo ) |
Construct a new Distance object (init with trigger and echo)
Construct a new Distance object (init with trigger and echo)
◆ getDistance()
| float Distance::getDistance |
( |
| ) |
|
Returns the distance of the sensor.
- Returns
- int32_t Distance in millimeters
The documentation for this class was generated from the following files: