#include <ci_leds_actuator.h>
Definition at line 19 of file ci_leds_actuator.h.
◆ TSettings
◆ CCI_LEDsActuator()
argos::CCI_LEDsActuator::CCI_LEDsActuator |
( |
| ) |
|
|
inline |
◆ ~CCI_LEDsActuator()
virtual argos::CCI_LEDsActuator::~CCI_LEDsActuator |
( |
| ) |
|
|
inlinevirtual |
◆ GetNumLEDs()
size_t argos::CCI_LEDsActuator::GetNumLEDs |
( |
| ) |
const |
◆ SetAllColors() [1/2]
void argos::CCI_LEDsActuator::SetAllColors |
( |
const CColor & |
c_color | ) |
|
|
virtual |
Sets the color of the whole LED ring.
All the LEDs in the ring will be lit up in the same color. The method does not impact on the LED intensity: if the intensity was changed, the method updates the color but preserves the intensity previously set.
- Parameters
-
Definition at line 116 of file ci_leds_actuator.cpp.
◆ SetAllColors() [2/2]
void argos::CCI_LEDsActuator::SetAllColors |
( |
const TSettings & |
c_colors | ) |
|
|
virtual |
Sets the color of the whole LED ring.
All the LEDs in the ring will be lit up, it is possible to have a different color for each LED. Notice that the method also impacts on the intensity of the LED color: it is up to the user to modulate the alpha channel of the color if intensity reduction is needed.
- Parameters
-
c_colors | color to set for each LED. |
Definition at line 125 of file ci_leds_actuator.cpp.
◆ SetAllIntensities()
void argos::CCI_LEDsActuator::SetAllIntensities |
( |
UInt8 |
un_intensity | ) |
|
|
virtual |
Sets the intensity of all the LEDs in the ring.
Intensity is expressed in [0-255].
- Parameters
-
un_intensity | color to set for each LED. |
Definition at line 140 of file ci_leds_actuator.cpp.
◆ SetSingleColor()
void argos::CCI_LEDsActuator::SetSingleColor |
( |
UInt32 |
un_led_number, |
|
|
const CColor & |
c_color |
|
) |
| |
|
virtual |
Sets the color of a single LED.
The method does not impact on the LED intensity: if the intensity was changed, the method updates the color but preserves the intensity previously set.
- Parameters
-
un_led_number | LED that must be set |
c_color | color to set |
Definition at line 108 of file ci_leds_actuator.cpp.
◆ SetSingleIntensity()
void argos::CCI_LEDsActuator::SetSingleIntensity |
( |
UInt32 |
un_led_number, |
|
|
UInt8 |
un_intensity |
|
) |
| |
|
virtual |
Sets the intensity of a single LED in the ring.
Intensity is expressed in [0-255].
- Parameters
-
un_led_number | index of the LED whose intensity must be set. |
un_intensity | color to set for each LED. |
Definition at line 132 of file ci_leds_actuator.cpp.
◆ m_tSettings
TSettings argos::CCI_LEDsActuator::m_tSettings |
|
protected |