Home
last modified time | relevance | path

Searched +full:color +full:- +full:mapping (Results 1 – 25 of 88) sorted by relevance

1234

/Zephyr-latest/samples/drivers/led/lp50xx/boards/
Dlpcxpresso11u68.overlay5 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/dt-bindings/led/led.h>
19 color-mapping =
27 color-mapping =
35 color-mapping =
43 color-mapping =
51 color-mapping =
59 color-mapping =
67 color-mapping =
75 color-mapping =
[all …]
/Zephyr-latest/dts/bindings/led/
Dled-controller.yaml2 # SPDX-License-Identifier: Apache-2.0
6 child-binding:
20 color-mapping:
23 Channel to color mapping of a multicolor LED. If a LED supports
24 several colors, then the color-mapping property can be used to
27 For example the channel to color mapping of RGB LEDs would be
29 color-mapping =
Dissi,is31fl3194.yaml2 # SPDX-License-Identifier: Apache-2.0
5 IS31FL3194 3-channel LED driver with programmable pattern sequencing
7 This driver supports single-channel and RGB LEDs. For single channel LEDs,
11 by the color-mapping property.
23 color-mapping =
30 The following example defines three single-channel LEDs in the is31fl3194 DT node:
38 color-mapping = <LED_COLOR_ID_RED>;
43 color-mapping = <LED_COLOR_ID_GREEN>;
48 color-mapping = <LED_COLOR_ID_BLUE>;
55 include: ["i2c-device.yaml", "led-controller.yaml"]
[all …]
Donnn,ncp5623.yaml3 # SPDX-License-Identifier: Apache-2.0
19 color-mapping =
26 The following example defines three single-channel LEDs in the ncp5623 DT node
35 color-mapping =
42 color-mapping =
49 color-mapping =
57 include: ["i2c-device.yaml", "led-controller.yaml"]
59 child-binding:
67 color-mapping:
Dti,lp50xx.yaml2 # SPDX-License-Identifier: Apache-2.0
4 include: ["i2c-device.yaml", "led-controller.yaml"]
7 enable-gpios:
8 type: phandle-array
21 child-binding:
27 color-mapping:
/Zephyr-latest/dts/bindings/led_strip/
Dled-strip.yaml3 # SPDX-License-Identifier: Apache-2.0
8 chain-length:
12 The number of devices in the daisy-chain.
14 color-mapping:
18 Channel to color mapping (or pixel order).
20 For example a GRB channel to color mapping would be
22 color-mapping = <LED_COLOR_ID_GREEN
Dti,tlc5971.yaml2 # SPDX-License-Identifier: Apache-2.0
8 tree node. Length of daisy chains in pixels is defined by the chain-length
9 property. Note: chain-length must be a multiple of 4. A single TLC5971 device
12 The color order of the TLC5971 is BGR. Applications can provide custom mappings
13 using the color-mapping property.
21 spi-max-frequency = <DT_FREQ_M(1)>;
23 chain-length = <24>;
24 color-mapping = <LED_COLOR_ID_BLUE>,
32 include: [spi-device.yaml, led-strip.yaml]
Dworldsemi,ws2812-gpio.yaml2 # SPDX-License-Identifier: Apache-2.0
7 Driver bindings for bit-banging a WS2812 or compatible LED strip.
11 or can be provided by setting the delay-txx properties in the device
17 type of LEDs used, consult the data-sheet for the precise timings.
20 +-------+ +---
24 ---+ +-----------------+
27 +---------------+ +---
31 ---+ +---------+
38 clock-frequency = <64000000>;
43 compatible = "worldsemi,ws2812-gpio";
[all …]
/Zephyr-latest/boards/seagate/faze/
Dfaze.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <zephyr/dt-bindings/led/led.h>
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
13 #include "faze-pinctrl.dtsi"
23 zephyr,shell-uart = &uart0;
30 eeprom-0 = &eeprom0;
31 led-controller-0 = &led_controller_0;
35 compatible = "gpio-keys";
46 compatible = "gpio-leds";
[all …]
/Zephyr-latest/tests/drivers/build_all/led_strip/
Dapp.overlay5 * SPDX-License-Identifier: Apache-2.0
10 * with real-world devicetree nodes, to allow these tests to run on
15 #include <zephyr/dt-bindings/led/led.h>
19 #address-cells = <1>;
20 #size-cells = <1>;
24 gpio-controller;
26 #gpio-cells = <0x2>;
31 #address-cells = <1>;
32 #size-cells = <0>;
36 clock-frequency = <DT_FREQ_M(2)>;
[all …]
/Zephyr-latest/drivers/led_strip/
Dws2812_spi.c6 * SPDX-License-Identifier: Apache-2.0
24 #include <zephyr/dt-bindings/led/led.h>
26 /* spi-one-frame and spi-zero-frame in DT are for 8-bit frames. */
32 * - mode 0 (the default), 8 bit, MSB first (arbitrary), one-line SPI
33 * - no shenanigans (don't hold CS, don't hold the device lock, this
52 return dev->config; in dev_cfg()
56 * Serialize an 8-bit color channel value into an equivalent sequence
60 static inline void ws2812_spi_ser(uint8_t buf[8], uint8_t color, in ws2812_spi_ser() argument
66 buf[i] = color & BIT(7 - i) ? one_frame : zero_frame; in ws2812_spi_ser()
71 * Latch current color values on strip and reset its state machines.
[all …]
Dws2812_rpi_pico_pio.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/led/led.h>
42 const struct ws2812_led_strip_config *config = dev->config; in ws2812_led_strip_sm_init()
44 sys_clock_hw_cycles_per_sec() / (config->cycles_per_bit * config->frequency); in ws2812_led_strip_sm_init()
49 pio = pio_rpi_pico_get_pio(config->piodev); in ws2812_led_strip_sm_init()
53 return -EINVAL; in ws2812_led_strip_sm_init()
57 sm_config_set_sideset_pins(&sm_config, config->gpio_pin); in ws2812_led_strip_sm_init()
58 sm_config_set_out_shift(&sm_config, false, true, (config->num_colors == 4 ? 32 : 24)); in ws2812_led_strip_sm_init()
61 pio_sm_set_consecutive_pindirs(pio, sm, config->gpio_pin, 1, true); in ws2812_led_strip_sm_init()
62 pio_sm_init(pio, sm, -1, &sm_config); in ws2812_led_strip_sm_init()
[all …]
Dtlc5971.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/led/led.h>
57 /** GS reference clock edge select bit for OUTXn on-off timing control in FC data */
60 /** Constant-current output enable bit in FC data (0 = output control enabled, 1 = blank). */
78 /** Bit mask for global brightness control for color 1 in data byte 26, upper 5 bits of GBC */
81 /** Bit mask for global brightness control for color 1 in data byte 25, lower 2 bits of GBC */
84 /** Bit mask for global brightness control for color 2 in data byte 25, upper 6 bits of GBC */
87 /** Bit mask for global brightness control for color 2 in data byte 24, lower 1 bits of GBC */
90 /** Bit mask for global brightness control for color 3 in data byte 24, all 7 bits of GBC */
106 * @brief create data byte 26 from control data and color 1 GBC
[all …]
Dws2812_i2s.c5 * https://electronut.in/nrf52-i2s-ws2812/
7 * Note: the word "word" refers to a 32-bit integer unless otherwise stated.
11 * The I2S peripheral sends two 16-bit channel values for each clock period.
12 * A single LED color (8 data bits) will take up one 32-bit word or one LRCK
15 * SPDX-License-Identifier: Apache-2.0
28 #include <zephyr/dt-bindings/led/led.h>
49 /* Serialize an 8-bit color channel value into two 16-bit I2S values (or 1 32-bit
52 static inline uint32_t ws2812_i2s_ser(uint8_t color, const uint8_t sym_one, const uint8_t sym_zero) in ws2812_i2s_ser() argument
58 word |= (color & mask) ? sym_one : sym_zero; in ws2812_i2s_ser()
68 const struct ws2812_i2s_cfg *cfg = dev->config; in ws2812_strip_update_rgb()
[all …]
Dws2812_gpio.c6 * SPDX-License-Identifier: Apache-2.0
25 #include <zephyr/dt-bindings/led/led.h>
42 * https://github.com/zephyrproject-rtos/zephyr/issues/11917.
47 * Per Arm docs, both Rd and Rn must be r0-r7, so we use the "l"
78 const struct ws2812_gpio_cfg *config = dev->config; in send_buf()
79 volatile uint32_t *base = (uint32_t *)&NRF_GPIO->OUTSET; in send_buf()
80 const uint32_t val = BIT(config->gpio.pin); in send_buf()
99 while (len--) { in send_buf()
107 * inter-bit time will be longer than TxL, but the in send_buf()
114 for (i = 7; i >= 0; i--) { in send_buf()
[all …]
/Zephyr-latest/samples/drivers/led/led_strip/boards/
Dnucleo_l432kc.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/led/led.h>
14 spi-max-frequency = <5250000>;
15 chain-length = <1>;
16 color-mapping = <LED_COLOR_ID_BLUE
24 led-strip = &apa102;
D96b_carbon_stm32f401xe.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/led/led.h>
14 spi-max-frequency = <2000000>;
15 chain-length = <1>;
16 color-mapping = <LED_COLOR_ID_RED
24 led-strip = &lpd8806;
Dbbc_microbit.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
8 #include <zephyr/dt-bindings/led/led.h>
12 compatible = "worldsemi,ws2812-gpio";
14 chain-length = <16>; /* arbitrary; change at will */
15 color-mapping = <LED_COLOR_ID_GREEN
23 led-strip = &led_strip;
Dnrf51dk_nrf51822.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
8 #include <zephyr/dt-bindings/led/led.h>
12 compatible = "worldsemi,ws2812-gpio";
14 chain-length = <16>; /* arbitrary */
15 color-mapping = <LED_COLOR_ID_GREEN
26 led-strip = &led_strip;
Dnucleo_g071rb.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/led/led.h>
11 compatible = "worldsemi,ws2812-spi";
15 spi-max-frequency = <4000000>;
16 frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */
19 chain-length = <16>; /* arbitrary; change at will */
20 spi-one-frame = <0x70>;
21 spi-zero-frame = <0x40>;
22 color-mapping = <LED_COLOR_ID_GREEN
30 led-strip = &led_strip;
Dnucleo_h743zi.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/led/led.h>
11 compatible = "worldsemi,ws2812-spi";
15 spi-max-frequency = <DT_FREQ_M(4)>;
16 frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */
19 chain-length = <16>; /* arbitrary; change at will */
20 spi-one-frame = <0x70>;
21 spi-zero-frame = <0x40>;
22 color-mapping = <LED_COLOR_ID_GREEN
30 led-strip = &led_strip;
Dnucleo_l476rg.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/led/led.h>
11 compatible = "worldsemi,ws2812-spi";
15 spi-max-frequency = <4000000>;
16 frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */
19 chain-length = <16>; /* arbitrary; change at will */
20 spi-one-frame = <0x70>;
21 spi-zero-frame = <0x40>;
22 color-mapping = <LED_COLOR_ID_GREEN
30 led-strip = &led_strip;
Desp32s3_devkitc_procpu.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/led/led.h>
11 led-strip = &led_strip;
18 pinctrl-0 = <&i2s0_pinconf>;
21 dma-names = "tx";
24 compatible = "worldsemi,ws2812-i2s";
27 chain-length = <46>;
28 color-mapping = <LED_COLOR_ID_GREEN
31 reset-delay = <500>;
43 output-enable;
Dnrf52dk_nrf52832.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/led/led.h>
9 #include "../nrf52-bindings.h"
12 compatible = "nordic,nrf-spim";
14 compatible = "worldsemi,ws2812-spi";
18 spi-max-frequency = <SPI_FREQ>;
21 chain-length = <16>; /* arbitrary; change at will */
22 color-mapping = <LED_COLOR_ID_GREEN
25 spi-one-frame = <ONE_FRAME>;
26 spi-zero-frame = <ZERO_FRAME>;
[all …]
/Zephyr-latest/boards/shields/adafruit_neopixel_grid_bff/boards/
Dadafruit_qt_py_rp2040.overlay3 * SPDX-License-Identifier: Apache-2.0
6 #include <dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>
19 bff-ws2812 {
20 compatible = "worldsemi,ws2812-rpi_pico-pio";
22 pinctrl-0 = <&pinctrl_bff_ws2812>;
23 pinctrl-names = "default";
24 bit-waveform = <3>, <3>, <4>;
29 chain-length = <25>;
30 color-mapping = <LED_COLOR_ID_GREEN
33 reset-delay = <280>;

1234