Description Usage Arguments Value Examples
Returns a configured led instance.
1 |
pin |
A character or numeric of length one with the GPIO pin that the led is connected to. |
initial_value |
A logical of length one. If 'FALSE' (the default), the LED will be off initially. If 'NULL', the LED will be left in whatever state the pin is found in when configured for output (warning: this can be on). If 'TRUE', the LED will be switched on initially. |
A LED S4 object, this object will be set to work with the configured led.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.