Description Usage Arguments Value Methods (by class) Examples
Sets the value of a given led instance.
1 2 3 4 | set_led_value(x, value)
## S4 method for signature 'LED'
set_led_value(x, value)
|
x |
A LED instance. |
value |
A numeric of length one. If 0, the LED will be off. Other values between 0 and 1 can be specified as brightness for the LED. |
The same LED instance provided as input.
LED:
1 2 3 4 5 6 7 8 9 | ## Not run:
# Get a led instance.
led <- get_led(14)
# Turn the led to its maximum intensity.
set_led_value(led, 1)
# Turn the led off.
set_led_value(led, 0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.