upm  0.2.0
Sensor/Actuator repository for libmraa (v0.6.1)
Public Member Functions
WaterLevel Class Reference

UPM module for the Grove Luminance Sensor. More...

Detailed Description

// Instantiate a Grove Luminance sensor on analog pin A0
upm::APDS9002* luminance = new upm::APDS9002(0);
while (shouldRun)
{
int val = luminance->value();
cout << "Luminance value is " << val << endl;
sleep(1);
}

Public Member Functions

 WaterLevel (int pin)
 
 ~WaterLevel ()
 
bool isSubmerged ()
 

Constructor & Destructor Documentation

WaterLevel ( int  pin)

Water Level Constructor

Parameters
pindigital pin to use
~WaterLevel ( )

Water Level Destructor

Member Function Documentation

bool isSubmerged ( )
Returns
bool returns whether liquid has gone above sensor

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