GrowNode
gn_pwm.h File Reference

Functions

gn_leaf_descriptor_handle_t gn_leaf_pwm_config (gn_leaf_handle_t leaf_config)
 

Variables

static const char GN_LEAF_PWM_TYPE [] = "pwm"
 
static const char GN_LEAF_PWM_PARAM_TOGGLE [] = "toggle"
 
static const char GN_LEAF_PWM_PARAM_POWER [] = "power"
 
static const char GN_LEAF_PWM_PARAM_CHANNEL [] = "channel"
 
static const char GN_LEAF_PWM_PARAM_GPIO [] = "gpio"
 

Function Documentation

◆ gn_leaf_pwm_config()

gn_leaf_descriptor_handle_t gn_leaf_pwm_config ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ GN_LEAF_PWM_PARAM_CHANNEL

const char GN_LEAF_PWM_PARAM_CHANNEL[] = "channel"
static

0-7

◆ GN_LEAF_PWM_PARAM_GPIO

const char GN_LEAF_PWM_PARAM_GPIO[] = "gpio"
static

the GPIO to connect the pump (must be PWM capable)

◆ GN_LEAF_PWM_PARAM_POWER

const char GN_LEAF_PWM_PARAM_POWER[] = "power"
static

0 = off, 1024 = maximum

◆ GN_LEAF_PWM_PARAM_TOGGLE

const char GN_LEAF_PWM_PARAM_TOGGLE[] = "toggle"
static

0 = off, 1 = on

◆ GN_LEAF_PWM_TYPE

const char GN_LEAF_PWM_TYPE[] = "pwm"
static