HCSR04 Library
controller Class Referenceabstract

Controller superclass. More...

#include <HCSR04.h>

Inheritance diagram for controller:
contrDist contrFreq contrSpeed

Public Member Functions

 controller (display &screen)
 Superclass constructor.
 
virtual int getResult (Unit unit)=0
 Function for fetching result. More...
 
virtual void dispResult (Unit unit, int height)=0
 Function for displaying result directly on display. More...
 

Protected Attributes

displayscreen
 

Detailed Description

Controller superclass.

The controller is mainly intended for displaying measurements on the display but can also be used for fetching results.

Member Function Documentation

virtual void controller::dispResult ( Unit  unit,
int  height 
)
pure virtual

Function for displaying result directly on display.

"Unit unit" represents the unit in which the measurements will be outputted.

Implemented in contrFreq, contrSpeed, and contrDist.

virtual int controller::getResult ( Unit  unit)
pure virtual

Function for fetching result.

"Unit unit" represents the unit in which the measurements will be outputted.

Implemented in contrFreq, contrSpeed, and contrDist.


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