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 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
36 #define WS281X_T_DATA_NS (1250U)
37 
42 #define WS281X_T_DATA_ONE_NS (650U)
43 #define WS281X_T_DATA_ZERO_NS (325U)
52 #define WS281X_T_END_US (80U)
62 #define WS281X_OFFSET_R (1U)
66 #define WS281X_OFFSET_G (0U)
70 #define WS281X_OFFSET_B (2U)
73 #ifdef __cplusplus
74 }
75 #endif
76