Loading...
Searching...
No Matches
grove_ledbar_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
18#ifndef GROVE_LEDBAR_PARAMS_H
19#define GROVE_LEDBAR_PARAMS_H
20
21#include "board.h"
22#include "periph/gpio.h"
23#include "saul_reg.h"
24
25#include "grove_ledbar.h"
26#include "my9221.h"
27
28#ifdef __cplusplus
29extern "C"
30{
31#endif
32
36#ifndef GROVE_LEDBAR_CLK
37#define GROVE_LEDBAR_CLK (GPIO_PIN(0, 1))
38#endif
39
43#ifndef GROVE_LEDBAR_DAT
44#define GROVE_LEDBAR_DAT (GPIO_PIN(0, 2))
45#endif
46
50#ifndef GROVE_LEDBAR_DIR
51#define GROVE_LEDBAR_DIR GROVE_LEDBAR_G2R
52#endif
53
57#ifndef GROVE_LEDBAR_PARAMS
58#define GROVE_LEDBAR_PARAMS { .leds = 10, \
59 .dir = GROVE_LEDBAR_DIR, \
60 .clk = GROVE_LEDBAR_CLK, \
61 .dat = GROVE_LEDBAR_DAT }
62#endif
63
67#define GROVE_LEDBAR_SAUL_INFO { .name = "Grove LED bar" }
68
76
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif /* GROVE_LEDBAR_PARAMS_H */
Low-level GPIO peripheral driver interface definitions.
Interface for the Grove ledbar driver.
static const saul_reg_info_t grove_ledbar_saul_info[]
Additional meta information to keep in the SAUL registry.
static const grove_ledbar_params_t grove_ledbar_params[]
Grove LED bar configuration.
#define GROVE_LEDBAR_PARAMS
Default parameter settings.
#define GROVE_LEDBAR_SAUL_INFO
SAUL info.
Interface for the MY9221 LED controller driver.
SAUL registry interface definition.
Parameters needed for device initialization.
Definition my9221.h:70
Additional data to collect for each entry.
Definition saul_reg.h:49