Loading...
Searching...
No Matches
lpd8808_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Hauke Petersen <devel@haukepetersen.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28#ifndef LPD8808_PARAM_LED_CNT
29#define LPD8808_PARAM_LED_CNT (64) /* most have 64 per meter... */
30#endif
31#ifndef LPD8808_PARAM_PIN_CLK
32#define LPD8808_PARAM_PIN_CLK (GPIO_PIN(0, 0))
33#endif
34#ifndef LPD8808_PARAM_PIN_DAT
35#define LPD8808_PARAM_PIN_DAT (GPIO_PIN(0, 1))
36#endif
37
38#ifndef LPD8808_PARAMS
39#define LPD8808_PARAMS { .led_cnt = LPD8808_PARAM_LED_CNT, \
40 .pin_clk = LPD8808_PARAM_PIN_CLK, \
41 .pin_dat = LPD8808_PARAM_PIN_DAT }
42#endif
44
49{
50 LPD8808_PARAMS
51};
52
53#ifdef __cplusplus
54}
55#endif
56
static const lpd8808_params_t lpd8808_params[]
LPD8808 parameter allocation.
Parameters needed for configuration.
Definition lpd8808.h:39