Set the state of a given LED unit to off.
- Note
- A led unit is defined as an RGB LED or a monochrome LED. Using a LED unit assigned to another core will do nothing and return 0.
- Parameters
-
led_unit | Selected LED unit. Defines are located in board.h. |
- Returns
- 0 on success. -EPERM if the module has not been initialized. -EINVAL if the color argument is illegal. Other errors from underlying drivers.