|
GrowNode
|
Functions | |
| gn_leaf_descriptor_handle_t | gn_gpio_config (gn_leaf_handle_t leaf_config) |
| gn_leaf_handle_t | gn_gpio_fastcreate (gn_node_handle_t node, const char *leaf_name, int gpio, bool inverted, bool toggled) |
Variables | |
| static const char | GN_LEAF_GPIO_TYPE [] = "gpio" |
| static const char | GN_GPIO_PARAM_TOGGLE [] = "status" |
| static const char | GN_GPIO_PARAM_INVERTED [] = "inverted" |
| static const char | GN_GPIO_PARAM_GPIO [] = "gpio" |
| gn_leaf_descriptor_handle_t gn_gpio_config | ( | gn_leaf_handle_t | leaf_config | ) |
| gn_leaf_handle_t gn_gpio_fastcreate | ( | gn_node_handle_t | node, |
| const char * | leaf_name, | ||
| int | gpio, | ||
| bool | inverted, | ||
| bool | toggled | ||
| ) |
creates a GPIO leaf defining all parameters
| node | the parent node |
| leaf_name | the name of the leaf to be created |
| gpio | the GPIO number to attach this leaf |
| inverted | if the GPIO need to work in inverted mode (toggle = true -> gpio = false) |
| toggled | the initial status |
|
static |
the GPIO to connect the relay
|
static |
0 = off, 1 = on
|
static |
0 = off, 1 = on
|
static |