View Source BrightPi.LED (BrightPi v1.0.0)

Values for LEDs, dim and gain.

Link to this section Summary

Functions

Returns a list of all LEDs.

Returns a list of all infrared LEDs.

Returns a list of all white LEDs.

Returns the default gain value.

Returns the maximum dim value.

Returns the maximum gain value.

Returns the minimum dim value.

Returns the minimum gain value.

Link to this section Functions

Returns a list of all LEDs.

example

Example

iex> BrightPi.LED.all()
[1, 2, 3, 4, 5, 6, 7, 8]

Returns a list of all infrared LEDs.

example

Example

iex> BrightPi.LED.all_ir()
[5, 6, 7, 8]

Returns a list of all white LEDs.

example

Example

iex> BrightPi.LED.all_white()
[1, 2, 3, 4]

Returns the default gain value.

example

Example

iex> BrightPi.LED.default_gain()
8

Returns the maximum dim value.

example

Example

iex> BrightPi.LED.max_dim()
50

Returns the maximum gain value.

example

Example

iex> BrightPi.LED.max_gain()
15

Returns the minimum dim value.

example

Example

iex> BrightPi.LED.min_dim()
0

Returns the minimum gain value.

example

Example

iex> BrightPi.LED.min_gain()
0