Loading...
Searching...
No Matches
grove_ledbar_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "periph/gpio.h"
20#include "saul_reg.h"
21
22#include "grove_ledbar.h"
23#include "my9221.h"
24
25#ifdef __cplusplus
26extern "C"
27{
28#endif
29
33#ifndef GROVE_LEDBAR_CLK
34#define GROVE_LEDBAR_CLK (GPIO_PIN(0, 1))
35#endif
36
40#ifndef GROVE_LEDBAR_DAT
41#define GROVE_LEDBAR_DAT (GPIO_PIN(0, 2))
42#endif
43
47#ifndef GROVE_LEDBAR_DIR
48#define GROVE_LEDBAR_DIR GROVE_LEDBAR_G2R
49#endif
50
54#ifndef GROVE_LEDBAR_PARAMS
55#define GROVE_LEDBAR_PARAMS { .leds = 10, \
56 .dir = GROVE_LEDBAR_DIR, \
57 .clk = GROVE_LEDBAR_CLK, \
58 .dat = GROVE_LEDBAR_DAT }
59#endif
60
64#define GROVE_LEDBAR_SAUL_INFO { .name = "Grove LED bar" }
65
73
81
82#ifdef __cplusplus
83}
84#endif
85
Low-level GPIO peripheral driver interface definitions.
my9221_params_t grove_ledbar_params_t
Parameters needed for device initialization.
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.
Additional data to collect for each entry.
Definition saul_reg.h:48