zephyr/samples/drivers/led_strip/f070rb-bindings.h
TOKITA Hiroshi 0929a8db37 samples: drivers: Rename led_ws2812 to led_strip
Rename it so that it can be used as a sample of various LED strips.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-03-20 17:20:08 -05:00

27 lines
638 B
C

/*
* Copyright (c) 2021 Seagate Technology LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_SAMPLES_DRIVERS_LED_WS2812_F070RB_BINDINGS_H
#define ZEPHYR_SAMPLES_DRIVERS_LED_WS2812_F070RB_BINDINGS_H
/*
* Everlight B1414 LED controller;
*
* Each bit of the control signal (waveform) is described with a 1.2 us pulse:
* 0 bit: 300 ns high and 900 ns low.
* 1 bit: 900 ns high and 300 ns low.
*
* At 6 MHz, one bit represents 166.666 ns.
* 1200 ns -> 7.2 bits
* 300 ns -> 1.8 bits
* 900 ns -> 5.4 bits
*/
#define B1414_SPI_FREQ 6000000
#define B1414_ZERO_FRAME 0x60
#define B1414_ONE_FRAME 0x7C
#endif