Home
last modified time | relevance | path

Searched +full:pixel +full:- +full:mapping (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/dts/bindings/display/
Dnordic,nrf-led-matrix.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nordic,nrf-led-matrix"
8 include: display-controller.yaml
11 row-gpios:
12 type: phandle-array
17 col-gpios:
18 type: phandle-array
23 pixel-mapping:
24 type: uint8-array
29 array corresponds to one pixel of the matrix and specifies the row
[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
66 buf[i] = color & BIT(7 - i) ? one_frame : zero_frame; in ws2812_spi_ser()
83 const uint8_t one = cfg->one_frame, zero = cfg->zero_frame; in ws2812_strip_update_rgb()
85 .buf = cfg->px_buf, in ws2812_strip_update_rgb()
[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
68 const struct ws2812_i2s_cfg *cfg = dev->config; in ws2812_strip_update_rgb()
69 const uint8_t sym_one = cfg->nibble_one; in ws2812_strip_update_rgb()
70 const uint8_t sym_zero = cfg->nibble_zero; in ws2812_strip_update_rgb()
[all …]
Dtlc5971.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/led/led.h>
43 * The TLC5971 has 4x RGB outputs per device, where each RGB group constitues a pixel from this
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). */
147 * @param color_id color id from color mapping
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()
174 * @brief serialize control data and pixel data for device daisy chain
[all …]
/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
Dws2812.yaml4 # SPDX-License-Identifier: Apache-2.0
13 https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/
16 at least 550 ns, with 700 ns or so typical. Pixel order is GRB.
19 MOSI line. Use the worldsemi,ws2812-spi.yaml or
20 worldsemi,ws2812-gpio.yaml bindings instead of this file after
31 There is a +/- 80 ns tolerance for each timing.
33 The latch/reset delay is 250 us and it must be set using the reset-delay
34 property. The pixel order depends on the model and it can be configured
35 using the color-mapping property.
37 include: led-strip.yaml
[all …]
/Zephyr-latest/drivers/display/
DKconfig.nrf_led_matrix2 # SPDX-License-Identifier: Apache-2.0
14 Assignment of GPIOs to rows and columns and the mapping of those
15 to pixels are specified in properties of a "nordic,nrf-led-matrix"
19 (the latter value depends on the chosen pixel group size - the number
Ddisplay_nrf_led_matrix.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/gpio/gpio.h>
31 #if (GROUP_SIZE > DT_PROP(TIMER_NODE, cc_num) - 1) || \
33 #error "Invalid pixel-group-size configured."
40 #error "Invalid length of pixel-mapping."
48 _GET_ROW_IDX(dev_config->pixel_mapping[pixel_idx])
54 _GET_COL_IDX(dev_config->pixel_mapping[pixel_idx])
59 "Invalid row index in pixel-mapping["#idx"]."); \
61 "Invalid column index in pixel-mapping["#idx"].");
77 #error "Invalid pixel period. Change refresh-frequency or pixel-group-size."
[all …]
/Zephyr-latest/tests/drivers/build_all/display/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
13 #include <zephyr/dt-bindings/led/led.h>
14 #include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
18 #address-cells = <1>;
19 #size-cells = <1>;
23 gpio-controller;
25 #gpio-cells = <0x2>;
30 compatible = "zephyr,mipi-dbi-spi";
32 dc-gpios = <&test_gpio 0 0>;
[all …]
/Zephyr-latest/boards/bbc/microbit_v2/
Dbbc_microbit_v2.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include "bbc_microbit_v2-pinctrl.dtsi"
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 compatible = "bbc,microbit-v2";
27 zephyr,shell-uart = &uart0;
28 zephyr,bt-mon-uart = &uart0;
29 zephyr,bt-c2h-uart = &uart0;
32 zephyr,code-partition = &slot0_partition;
37 compatible = "gpio-keys";
[all …]
/Zephyr-latest/boards/bbc/microbit/
Dbbc_microbit.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include "bbc_microbit-pinctrl.dtsi"
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
27 zephyr,shell-uart = &uart0;
28 zephyr,bt-mon-uart = &uart0;
29 zephyr,bt-c2h-uart = &uart0;
32 zephyr,code-partition = &slot0_partition;
37 compatible = "gpio-keys";
52 compatible = "nordic,nrf-led-matrix";
[all …]
/Zephyr-latest/boards/st/stm32f469i_disco/doc/
Dindex.rst6 The STM32F469 Discovery kit features an ARM Cortex-M4 based STM32F469NI MCU
8 some highlights of the STM32F469I-DISCO board:
11 - STM32 microcontroller in BGA216 package
12 - On-board ST-LINK/V2-1 debugger/programmer, supporting USB reenumeration capability
13 - Flexible board power supply:
15 - ST-LINK/V2-1 USB connector
16 - User USB FS connector
17 - VIN from Arduino* compatible connectors
19 - Four user LEDs
20 - Two push-buttons: USER and RESET
[all …]
/Zephyr-latest/boards/st/stm32f412g_disco/doc/
Dindex.rst6 The STM32F412 Discovery kit features an ARM Cortex-M4 based STM32F412ZG MCU
8 some highlights of the STM32F412G-DISCO board:
11 - STM32F412ZGT6 microcontroller featuring 1 Mbyte of Flash memory and 256 Kbytes of RAM in an LQFP1…
12 - On-board ST-LINK/V2-1 SWD debugger supporting USB re-enumeration capability:
14 - USB virtual COM port
15 - mass storage
16 - debug port
18 - 1.54 inch 240x240 pixel TFT color LCD with parallel interface and capacitive touchscreen
19 - I2S Audio CODEC, with a stereo headset jack, including analog microphone input and a loudspeaker …
20 - Stereo digital MEMS microphones
[all …]
/Zephyr-latest/boards/st/stm32f413h_disco/doc/
Dindex.rst6 The STM32F413H-DISCO Discovery kit features an ARM Cortex-M4 based STM32F413ZH MCU
8 some highlights of the STM32F413H-DISCO board:
11 - STM32F413ZHT6 microcontroller featuring 1.5 Mbyte of Flash memory and 320 Kbytes of RAM in an LQF…
12 - On-board ST-LINK/V2-1 SWD debugger supporting USB re-enumeration capability:
14 - USB virtual COM port
15 - mass storage
16 - debug port
18 - 1.54 inch 240x240 pixel TFT color LCD with parallel interface and capacitive touchscreen
19 - I2S Audio CODEC, with a stereo headset jack, including analog microphone input and a loudspeaker …
20 - Stereo digital MEMS microphones
[all …]
/Zephyr-latest/boards/st/stm32l496g_disco/doc/
Dindex.rst6 The STM32L496G Discovery board features an ARM Cortex-M4 based STM32L496AG MCU
11 - STM32L496AGI6 microcontroller featuring 1 Mbyte of Flash memory and 320 Kbytes of RAM in an UFBGA…
12 - 1.54 inch 240 x 240 pixel-TFT color LCD with parallel interface
13 - SAI Audio CODEC, with a stereo headset jack, including analog microphone input
14 - Stereo digital MEMS microphones
15 - microSD card connector (card included)
16 - Camera 8 bit-connector
17 - 8 Mbit-PSRAM
18 - IDD measurement
19 - 64 Mbit-Quad-SPI Flash
[all …]
/Zephyr-latest/boards/st/stm32l562e_dk/doc/
Dindex.rst6 The STM32L562E-DK Discovery kit is designed as a complete demonstration and
7 development platform for STMicroelectronics Arm |reg| Cortex |reg|-M33 core-based
9 the STM32L562E-DK Discovery board:
12 - STM32L562QEI6QU microcontroller featuring 512 Kbytes of Flash memory and 256 Kbytes of SRAM in BG…
13 - 1.54" 240 x 240 pixel-262K color TFT LCD module with parallel interface and touch-control panel
14 - USB Type-C |trade| Sink device FS
15 - On-board energy meter: 300 nA to 150 mA measurement range with a dedicated USB interface
16 - SAI Audio CODEC
17 - MEMS digital microphones
18 - 512-Mbit Octal-SPI Flash memory
[all …]