Loading...
Searching...
No Matches

Interface for the Grove ledbar driver. More...

Detailed Description

Interface for the Grove ledbar driver.

Author
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file grove_ledbar.h.

#include <stdint.h>
#include "my9221.h"
+ Include dependency graph for grove_ledbar.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GROVE_LEDBAR_MAX   UINT8_MAX
 Maximum value for ledbar level.
 

Typedefs

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.
 

Functions

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

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

#define GROVE_LEDBAR_R2G   MY9221_DIR_FWD
 
#define GROVE_LEDBAR_G2R   MY9221_DIR_REV