upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
Go to the source code of this file.
Data Structures | |
struct | _water_context |
Functions | |
water_context | water_init (unsigned int pin) |
void | water_close (water_context dev) |
bool | water_is_wet (const water_context dev) |
Typedefs | |
typedef struct _water_context * | water_context |
water_context water_init | ( | unsigned int | pin | ) |
Water initializer
pin | Digital pin to use |
void water_close | ( | water_context | dev | ) |
Water close function
bool water_is_wet | ( | const water_context | dev | ) |
Gets the water (wet/not wet) value from the sensor.
typedef struct _water_context * water_context |
Device context