Interface for the Grove ledbar driver. More...

Detailed Description

Interface for the Grove ledbar driver.

Sebastian Meiling

Definition in file grove_ledbar.h.

#include <stdint.h>
#include "my9221.h"
+ Include dependency graph for grove_ledbar.h:

Go to the source code of this file.


 Maximum value for ledbar level.


typedef my9221_params_t grove_ledbar_params_t
 Parameters needed for device initialization.
typedef my9221_t grove_ledbar_t
 Device descriptor for grove ledbar, alias for MY9221 LED controller.


int grove_ledbar_init (grove_ledbar_t *dev, const grove_ledbar_params_t *params)
 Initialize the given driver. More...
void grove_ledbar_set (grove_ledbar_t *dev, uint8_t level)
 Set overall (brightness) level distributed over all LEDs. More...
void grove_ledbar_clear (grove_ledbar_t *dev)
 Clear ledbar, i.e. More...

Ledbar direction, either red to green, or vice versa.