HCSR04 Library
contrDist Class Reference

Distance meter controller. More...

#include <HCSR04.h>

Inheritance diagram for contrDist:
controller

Public Member Functions

 contrDist (distancemeter &meter, display &screen)
 
int getResult (Unit unit)
 Function for fetching result. More...
 
void dispResult (Unit unit, int height)
 Function for displaying result directly on display. More...
 
- Public Member Functions inherited from controller
 controller (display &screen)
 Superclass constructor.
 

Additional Inherited Members

- Protected Attributes inherited from controller
displayscreen
 

Detailed Description

Distance meter controller.

This controller is mainly intended for displaying measurements on the display, it can also be used for just fetching results.

Member Function Documentation

void contrDist::dispResult ( Unit  unit,
int  height 
)
inlinevirtual

Function for displaying result directly on display.

"Unit unit" represents the unit in which the measurements will be outputted.
Available units:
Unit::Centim for centimeters.
Unit::Inch for inches.

Implements controller.

int contrDist::getResult ( Unit  unit)
inlinevirtual

Function for fetching result.

"Unit unit" represents the unit in which the measurements will be outputted.
Available units:
Unit::Centim for centimeters.
Unit::Inch for inches.

Implements controller.


The documentation for this class was generated from the following file: