|
upm
1.6.0
Sensor/Actuator repository for libmraa (v1.9.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
1.8.11