Loading...
Searching...
No Matches
ws281x_constants.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Marian Buschsieweke
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
26
33#define WS281X_T_DATA_NS (1250U)
34
39#ifndef WS281X_T_DATA_ONE_NS
40# define WS281X_T_DATA_ONE_NS (650U)
41#endif
42#ifndef WS281X_T_DATA_ZERO_NS
43# define WS281X_T_DATA_ZERO_NS (325U)
44#endif
46
53#define WS281X_T_END_US (80U)
55
63#define WS281X_OFFSET_R (1U)
67#define WS281X_OFFSET_G (0U)
71#define WS281X_OFFSET_B (2U)
75#define WS281X_OFFSET_W (3U)
77
78#ifdef __cplusplus
79}
80#endif
81