Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
apa102_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Freie Universität Berlin
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
19
#ifndef APA102_PARAMS_H
20
#define APA102_PARAMS_H
21
22
#include "board.h"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#ifndef APA102_PARAM_LED_NUMOF
33
#define APA102_PARAM_LED_NUMOF (64)
/* many have 64 per meter... */
34
#endif
35
#ifndef APA102_PARAM_DATA_PIN
36
#define APA102_PARAM_DATA_PIN (GPIO_PIN(0, 0))
37
#endif
38
#ifndef APA102_PARAM_CLK_PIN
39
#define APA102_PARAM_CLK_PIN (GPIO_PIN(0, 1))
40
#endif
41
42
#ifndef APA102_PARAMS
43
#define APA102_PARAMS { .led_numof = APA102_PARAM_LED_NUMOF, \
44
.data_pin = APA102_PARAM_DATA_PIN, \
45
.clk_pin = APA102_PARAM_CLK_PIN }
46
#endif
52
static
const
apa102_params_t
apa102_params
[] =
53
{
54
APA102_PARAMS
55
};
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* APA102_PARAMS_H */
apa102_params
static const apa102_params_t apa102_params[]
APA102 configuration.
Definition
apa102_params.h:52
apa102_params_t
Configuration parameters for (chained) APA102 LEDs.
Definition
apa102.h:34
Generated on Sat Nov 16 2024 04:50:50 by
1.9.8