GrowNode
gn_led.h File Reference

Functions

gn_leaf_descriptor_handle_t gn_led_config (gn_leaf_handle_t leaf_config)
 

Variables

static const char GN_LEAF_LED_TYPE [] = "gpio"
 
static const char GN_LED_PARAM_TOGGLE [] = "status"
 
static const char GN_LED_PARAM_INVERTED [] = "inverted"
 
static const char GN_LED_PARAM_BLINK_TIME_MS [] = "blinktime"
 
static const char GN_LED_PARAM_GPIO [] = "gpio"
 

Function Documentation

◆ gn_led_config()

gn_leaf_descriptor_handle_t gn_led_config ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ GN_LEAF_LED_TYPE

const char GN_LEAF_LED_TYPE[] = "gpio"
static

◆ GN_LED_PARAM_BLINK_TIME_MS

const char GN_LED_PARAM_BLINK_TIME_MS[] = "blinktime"
static

0 = off

◆ GN_LED_PARAM_GPIO

const char GN_LED_PARAM_GPIO[] = "gpio"
static

the GPIO to connect the relay

◆ GN_LED_PARAM_INVERTED

const char GN_LED_PARAM_INVERTED[] = "inverted"
static

0 = off, 1 = on

◆ GN_LED_PARAM_TOGGLE

const char GN_LED_PARAM_TOGGLE[] = "status"
static

0 = off, 1 = on