ZotBins Core
Loading...
Searching...
No Matches
Fullness::Distance Class Reference

Public Member Functions

 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.
 

Constructor & Destructor Documentation

◆ 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)

Member Function Documentation

◆ 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: