get_led_value: Get the value of a led instance.

Description Usage Arguments Value Methods (by class) Examples

Description

Gets the value of a given led instance.

Usage

1
2
3
4
get_led_value(x)

## S4 method for signature 'LED'
get_led_value(x)

Arguments

x

A LED instance.

Value

A numeric of length one with the actual value of the led.

Methods (by class)

Examples

1
2
3
4
5
6
7
## Not run: 
# Get a led instance with initial value 1 (maximum intensity).
led <- get_led(14, 1)
# Read the value of the led (should be 1).
get_led_value(led)

## End(Not run)

jcrodriguez1989/r2led documentation built on Sept. 6, 2020, 12:07 a.m.