Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
ws281x_constants.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 Marian Buschsieweke
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
9
#pragma once
10
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
36
#define WS281X_T_DATA_NS (1250U)
37
42
#ifndef WS281X_T_DATA_ONE_NS
43
# define WS281X_T_DATA_ONE_NS (650U)
44
#endif
45
#ifndef WS281X_T_DATA_ZERO_NS
46
# define WS281X_T_DATA_ZERO_NS (325U)
47
#endif
49
56
#define WS281X_T_END_US (80U)
58
66
#define WS281X_OFFSET_R (1U)
70
#define WS281X_OFFSET_G (0U)
74
#define WS281X_OFFSET_B (2U)
78
#define WS281X_OFFSET_W (3U)
80
81
#ifdef __cplusplus
82
}
83
#endif
84
Generated on Thu Feb 12 2026 09:23:29 by
1.13.2