1 /*
2  * Copyright (c) 2019, Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_SAMPLES_DRIVERS_LED_WS2812_H_
8 #define ZEPHYR_SAMPLES_DRIVERS_LED_WS2812_H_
9 
10 /*
11  * At 4 MHz, 1 bit is 250 ns, so 3 bits is 750 ns.
12  *
13  * That's cutting it a bit close to the edge of the timing parameters,
14  * but it seems to work on AdaFruit LED rings.
15  */
16 #define SPI_FREQ    4000000
17 #define ZERO_FRAME  0x40
18 #define ONE_FRAME   0x70
19 
20 #endif
21