Home
last modified time | relevance | path

Searched +full:bgr +full:- (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.5.0/dts/bindings/led_strip/
Dti,tlc5971.yaml2 # SPDX-License-Identifier: Apache-2.0
8 tree node. Length of daisy chains in pixels is defined by the chain-length
11 The color order of the TLC5971 is BGR. Applications can provide custom mappings
12 using the color-mapping property.
20 spi-max-frequency = <DT_FREQ_M(1)>;
22 chain-length = <24>;
23 color-mapping = <LED_COLOR_ID_BLUE>,
31 include: spi-device.yaml
34 chain-length:
38 The number of RGB LEDs in the daisy-chain.
[all …]
/Zephyr-Core-3.5.0/drivers/display/
DKconfig.sdl4 # SPDX-License-Identifier: Apache-2.0
38 bool "BGR 565"
Ddisplay_st7735r.c7 * Copyright (c) 2020 Kim Bøndergaard <kim@fam-boendergaard.dk>
9 * SPDX-License-Identifier: Apache-2.0
65 struct st7735r_data *data = dev->data; in st7735r_set_lcd_margins()
67 data->x_offset = x_offset; in st7735r_set_lcd_margins()
68 data->y_offset = y_offset; in st7735r_set_lcd_margins()
73 const struct st7735r_config *config = dev->config; in st7735r_set_cmd()
75 gpio_pin_set_dt(&config->cmd_data, is_cmd); in st7735r_set_cmd()
81 const struct st7735r_config *config = dev->config; in st7735r_transmit_hold()
87 ret = spi_write_dt(&config->bus, &tx_bufs); in st7735r_transmit_hold()
96 ret = spi_write_dt(&config->bus, &tx_bufs); in st7735r_transmit_hold()
[all …]
Ddisplay_hx8394.c4 * SPDX-License-Identifier: Apache-2.0
424 return -ENOTSUP; in hx8394_read()
435 const struct hx8394_config *config = dev->config; in hx8394_blanking_off()
437 if (config->bl_gpio.port != NULL) { in hx8394_blanking_off()
438 return gpio_pin_set_dt(&config->bl_gpio, 1); in hx8394_blanking_off()
440 return -ENOTSUP; in hx8394_blanking_off()
446 const struct hx8394_config *config = dev->config; in hx8394_blanking_on()
448 if (config->bl_gpio.port != NULL) { in hx8394_blanking_on()
449 return gpio_pin_set_dt(&config->bl_gpio, 0); in hx8394_blanking_on()
451 return -ENOTSUP; in hx8394_blanking_on()
[all …]
/Zephyr-Core-3.5.0/dts/bindings/display/
Dsitronix,st7735r.yaml1 # Copyright (c) 2020, Kim Bøndergaard <kim@fam-boendergaard.dk>
2 # SPDX-License-Identifier: Apache-2.0
8 include: [spi-device.yaml, display-controller.yaml]
11 reset-gpios:
12 type: phandle-array
19 cmd-data-gpios:
20 type: phandle-array
28 x-offset:
33 y-offset:
49 type: uint8-array
[all …]
/Zephyr-Core-3.5.0/drivers/led_strip/
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). */
157 temp = pixel_data->r; in tlc5971_map_color()
160 temp = pixel_data->g; in tlc5971_map_color()
163 temp = pixel_data->b; in tlc5971_map_color()
186 const struct tlc5971_config *cfg = dev->config; in tlc5971_fill_data_buffer()
187 struct tlc5971_data *data = dev->data; in tlc5971_fill_data_buffer()
188 uint8_t *data_buffer = data->data_buffer; in tlc5971_fill_data_buffer()
[all …]
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
54 return dev->config; in dev_cfg()
58 * Serialize an 8-bit color channel value into an equivalent sequence
68 buf[i] = color & BIT(7 - i) ? one_frame : zero_frame; in ws2812_spi_ser()
73 * Returns true if and only if cfg->px_buf is big enough to convert
82 overflow = size_mul_overflow(num_pixels, cfg->num_colors * 8, &nbytes); in num_pixels_ok()
[all …]
Dws2812_gpio.c6 * SPDX-License-Identifier: Apache-2.0
25 #include <zephyr/dt-bindings/led/led.h>
34 * This is hard-coded to nRF51 in two ways:
43 * TxL: inter-bit low pulse delay: 8 cycles == .5 usec
59 * https://github.com/zephyrproject-rtos/zephyr/issues/11917.
64 * Per Arm docs, both Rd and Rn must be r0-r7, so we use the "l"
92 const struct ws2812_gpio_cfg *config = dev->config; in send_buf()
93 volatile uint32_t *base = (uint32_t *)&NRF_GPIO->OUTSET; in send_buf()
94 const uint32_t val = BIT(config->in_gpio.pin); in send_buf()
113 while (len--) { in send_buf()
[all …]