Turn the given LED unit on.
- Note
- A led unit is defined as an RGB LED or a monochrome LED.
- Parameters
-
led_unit | Selected LED unit. Defines are located in board.h. |
- Note
- If the given LED unit is an RGB LED, color must be provided as a single vararg. See led_color. For monochrome LEDs, the vararg will be ignored. Using a LED unit assigned to another core will do nothing and return 0.
- Returns
- 0 on success. -EPERM if the module has not been initialized. -EINVAL if the color argument is illegal. Other errors from underlying drivers.