Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
worldsemi_ws2812c.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Martin Kiepfer <mrmarteng@teleschirm.org>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_DT_LED_WS2812C_H_
8#define ZEPHYR_DT_LED_WS2812C_H_
9
10/*
11 * At 7 MHz: 1 bit in 142.86 ns
12 * 1090 ns -> 7.6 bits
13 * 300 ns -> 2.1 bits
14 * 790 ns -> 5.5 bits
15 */
16#define WS2812C_SPI_FREQ (7000000U)
17#define WS2812C_ZERO_FRAME (0xC0U)
18#define WS2812C_ONE_FRAME (0xFCU)
19
20#endif