HCSR04 Library
|
Controller superclass. More...
#include <HCSR04.h>
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 | |
display & | screen |
Controller superclass.
The controller is mainly intended for displaying measurements on the display but can also be used for fetching results.
|
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.
|
pure virtual |
Function for fetching result.
"Unit unit" represents the unit in which the measurements will be outputted.
Implemented in contrFreq, contrSpeed, and contrDist.