waterdetect 2.0.0.0
|
Water Detect Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | wd_state = 0 |
uint8_t | wd_state_old = 0 |
Water Detect Click example.
Water Detect click is used for detecting water and other electroconductive liquids. If the detection area is wet the output of Microchip's MCP606 CMOS op-amp will go positive, signaling the presence of liquid.
The demo application is composed of two sections :
Initializes GPIO and LOG structures, set INT pins as input and starts to write log.
Reads device status and determines if there are water presence or not.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
uint8_t wd_state = 0 |
uint8_t wd_state_old = 0 |