Loading...
Searching...
No Matches

Config for the Grove LED bar based on MY9221 LED controller. More...

Detailed Description

Config for the Grove LED bar based on MY9221 LED controller.

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

Definition in file grove_ledbar_params.h.

#include "board.h"
#include "periph/gpio.h"
#include "saul_reg.h"
#include "grove_ledbar.h"
#include "my9221.h"
+ Include dependency graph for grove_ledbar_params.h:

Go to the source code of this file.

#define GROVE_LEDBAR_CLK   (GPIO_PIN(0, 1))
 Clock GPIO pin.
 
#define GROVE_LEDBAR_DAT   (GPIO_PIN(0, 2))
 Data GPIO pin.
 
#define GROVE_LEDBAR_DIR   GROVE_LEDBAR_G2R
 Direction of LEDs.
 
#define GROVE_LEDBAR_PARAMS
 Default parameter settings.
 
#define GROVE_LEDBAR_SAUL_INFO   { .name = "Grove LED bar" }
 SAUL info.
 
static const grove_ledbar_params_t grove_ledbar_params []
 Grove LED bar configuration.
 
static const saul_reg_info_t grove_ledbar_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Macro Definition Documentation

◆ GROVE_LEDBAR_CLK

#define GROVE_LEDBAR_CLK   (GPIO_PIN(0, 1))

Clock GPIO pin.

Definition at line 37 of file grove_ledbar_params.h.

◆ GROVE_LEDBAR_DAT

#define GROVE_LEDBAR_DAT   (GPIO_PIN(0, 2))

Data GPIO pin.

Definition at line 44 of file grove_ledbar_params.h.

◆ GROVE_LEDBAR_DIR

#define GROVE_LEDBAR_DIR   GROVE_LEDBAR_G2R

Direction of LEDs.

Definition at line 51 of file grove_ledbar_params.h.

◆ GROVE_LEDBAR_PARAMS

#define GROVE_LEDBAR_PARAMS
Value:
{ .leds = 10, \
.dir = GROVE_LEDBAR_DIR, \
.clk = GROVE_LEDBAR_CLK, \
#define GROVE_LEDBAR_DIR
Direction of LEDs.
#define GROVE_LEDBAR_CLK
Clock GPIO pin.
#define GROVE_LEDBAR_DAT
Data GPIO pin.

Default parameter settings.

Definition at line 58 of file grove_ledbar_params.h.

◆ GROVE_LEDBAR_SAUL_INFO

#define GROVE_LEDBAR_SAUL_INFO   { .name = "Grove LED bar" }

SAUL info.

Definition at line 67 of file grove_ledbar_params.h.

Variable Documentation

◆ grove_ledbar_params

const grove_ledbar_params_t grove_ledbar_params[]
static
Initial value:
=
{
}
#define GROVE_LEDBAR_PARAMS
Default parameter settings.

Grove LED bar configuration.

Definition at line 72 of file grove_ledbar_params.h.

◆ grove_ledbar_saul_info

const saul_reg_info_t grove_ledbar_saul_info[]
static
Initial value:
=
{
}
#define GROVE_LEDBAR_SAUL_INFO
SAUL info.

Additional meta information to keep in the SAUL registry.

Definition at line 80 of file grove_ledbar_params.h.