HRI board firmware v2.1 Microcontroller firmware of the board used during the HRI labs.

Functions
Driver / LED

Driver to control a LEDs row. More...

## Functions
void | led_Init (void)
| Initializes the LEDs module. More...
float32_t | led_Get (int ledIndex)
| Gets the intensity of a single LED. More...
void | led_Set (int ledIndex, float32_t brightness)
| Sets the intensity of a single LED. More...

## Detailed Description

Driver to control a LEDs row.

Call led_Init() first in the initialization code. Then, call led_Set() to set the LEDs ON or OFF.

## Function Documentation

## ◆ led_Get()

float32_t led_Get | ( | int | ledIndex | ) |

Gets the intensity of a single LED.

Parameters

  ledIndex | LED index (0, 1, 2 or 3).

Returns
  the current LED intensity [0.0-1.0].

## ◆ led_Init()

void led_Init | ( | void |  | ) |

Initializes the LEDs module.

## ◆ led_Set()

void led_Set | ( | int | ledIndex,
|  | float32_t | brightness
| ) |  |

Sets the intensity of a single LED.

Parameters

  ledIndex | LED index (0, 1, 2 or 3).
  brightness | the LED intensity [0.0-1.0].