1 /*
2  * Copyright (c) 2021 Seagate Technology LLC
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_SAMPLES_DRIVERS_LED_WS2812_F070RB_BINDINGS_H
8 #define ZEPHYR_SAMPLES_DRIVERS_LED_WS2812_F070RB_BINDINGS_H
9 
10 /*
11  * Everlight B1414 LED controller;
12  *
13  * Each bit of the control signal (waveform) is described with a 1.2 us pulse:
14  * 0 bit: 300 ns high and 900 ns low.
15  * 1 bit: 900 ns high and 300 ns low.
16  *
17  * At 6 MHz, one bit represents 166.666 ns.
18  * 1200 ns ->  7.2  bits
19  *  300 ns ->  1.8  bits
20  *  900 ns ->  5.4  bits
21  */
22 #define B1414_SPI_FREQ		6000000
23 #define B1414_ZERO_FRAME	0x60
24 #define B1414_ONE_FRAME		0x7C
25 
26 #endif
27