powered by
"Pulse" effect
lx_effect_pulse( color, from_color = NULL, period = 1, cycles = 1, persist = FALSE, power_on = TRUE, selector = "all", token = lx_get_token() )
The color to use for the pulse effect. use lx_color() as input
The color to start the effect from. If this parameter is omitted then the color the bulb is currently set to is used instead.
The time in seconds for one cycle of the effect.
The number of times to repeat the effect.
boolean; If FALSE set the light back to its previous value when effect ends, if true leave the last effect color.
If FALSE, does not turn light on if it is off
'LIFX' api "selector" such as "all", "id:12345", or "location:kitchen". Can be created with lx_selector or written manually (see https://api.developer.lifx.com/docs/selectors
lx_selector
API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see lx_save_token)
lx_save_token
an 'httr' response object (see response)
response
# NOT RUN { lx_effect_pulse(color = "red",from_color = "blue", period = 3,cycles = 5, persist = TRUE) # }
Run the code above in your browser using DataLab