Home
last modified time | relevance | path

Searched +full:blue +full:- +full:pwm +full:- +full:led (Results 1 – 25 of 128) sorted by relevance

123456

/Zephyr-latest/samples/basic/rgb_led/
DREADME.rst1 .. zephyr:code-sample:: rgb-led
2 :name: PWM RGB LED
3 :relevant-api: pwm_interface
5 Drive an RGB LED using the PWM API.
10 This is a sample app which drives an RGB LED using the :ref:`PWM API <pwm_api>`.
12 There are three single-color component LEDs in an RGB LED. Each component LED
13 is driven by a PWM port where the pulse width is changed from zero to the period
15 flicker fusion threshold (the minimum flicker rate where the LED is perceived as
16 being steady). The sample causes each LED component to step from dark to max
17 brightness. Three **for** loops (one for each component LED) generate a gradual
[all …]
Dsample.yaml2 name: RGB LED
5 filter: dt_alias_exists("red-pwm-led") and dt_alias_exists("green-pwm-led")
6 and dt_alias_exists("blue-pwm-led")
8 - drivers
9 - pwm
10 depends_on: pwm
11 harness: led
13 - nrf52840_mdk
/Zephyr-latest/boards/others/serpente/
Dserpente.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "serpente-pinctrl.dtsi"
18 zephyr,shell-uart = &sercom2;
21 zephyr,code-partition = &code_partition;
28 red-led = &red_led;
29 green-led = &green_led;
30 blue-led = &blue_led;
32 pwm-led0 = &red_pwm_led;
33 pwm-led1 = &green_pwm_led;
[all …]
/Zephyr-latest/boards/makerdiary/nrf52832_mdk/
Dnrf52832_mdk.dts5 * SPDX-License-Identifier: Apache-2.0
8 /dts-v1/;
10 #include "nrf52832_mdk-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 model = "nRF52832-MDK Micro Dev Kit";
15 compatible = "nrf52832-mdk";
19 zephyr,shell-uart = &uart0;
20 zephyr,uart-mcumgr = &uart0;
21 zephyr,bt-mon-uart = &uart0;
22 zephyr,bt-c2h-uart = &uart0;
[all …]
/Zephyr-latest/boards/electronut/nrf52840_papyr/
Dnrf52840_papyr.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "nrf52840_papyr-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 compatible = "nordic,pca10056-dk";
19 zephyr,uart-mcumgr = &uart0;
20 zephyr,shell-uart = &uart0;
21 zephyr,bt-mon-uart = &uart0;
22 zephyr,bt-c2h-uart = &uart0;
27 compatible = "gpio-leds";
[all …]
/Zephyr-latest/boards/makerdiary/nrf52840_mdk/
Dnrf52840_mdk.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "nrf52840_mdk-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 model = "nRF52840-MDK Dev Kit";
15 compatible = "nordic,pca10056-dk";
19 zephyr,shell-uart = &uart0;
20 zephyr,uart-mcumgr = &uart0;
21 zephyr,bt-mon-uart = &uart0;
22 zephyr,bt-c2h-uart = &uart0;
[all …]
/Zephyr-latest/boards/nxp/frdm_mcxc444/
Dfrdm_mcxc444.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "frdm_mcxc444-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 model = "NXP FRDM-MCXC444 board";
21 pwm-led0 = &red_pwm_led;
22 pwm-led1 = &green_pwm_led;
23 pwm-led2 = &blue_pwm_led;
24 red-pwm-led = &red_pwm_led;
25 green-pwm-led = &green_pwm_led;
[all …]
/Zephyr-latest/boards/actinius/icarus_bee/
Dactinius_icarus_bee_common.dtsi2 * Copyright (c) 2021-2022 Actinius
4 * SPDX-License-Identifier: Apache-2.0
6 #include "actinius_icarus_bee_common-pinctrl.dtsi"
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 zephyr,shell-uart = &uart0;
16 zephyr,uart-mcumgr = &uart0;
20 compatible = "gpio-leds";
24 label = "Red LED";
29 label = "Green LED";
34 label = "Blue LED";
[all …]
/Zephyr-latest/boards/makerdiary/nrf52840_mdk_usb_dongle/
Dnrf52840_mdk_usb_dongle.dts6 * SPDX-License-Identifier: Apache-2.0
9 /dts-v1/;
11 #include "nrf52840_mdk_usb_dongle-pinctrl.dtsi"
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
21 zephyr,code-partition = &slot0_partition;
26 compatible = "gpio-leds";
29 label = "Red LED 0";
33 label = "Green LED 0";
37 label = "Blue LED 0";
42 compatible = "pwm-leds";
[all …]
/Zephyr-latest/boards/nxp/frdm_mcxc242/
Dfrdm_mcxc242.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "frdm_mcxc242-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 model = "NXP FRDM-MCXC242 board";
21 pwm-led0 = &red_pwm_led;
22 pwm-led1 = &green_pwm_led;
23 pwm-led2 = &blue_pwm_led;
24 red-pwm-led = &red_pwm_led;
25 green-pwm-led = &green_pwm_led;
[all …]
/Zephyr-latest/boards/actinius/icarus/
Dactinius_icarus_common.dtsi2 * Copyright (c) 2019-2022 Actinius
4 * SPDX-License-Identifier: Apache-2.0
6 #include "actinius_icarus_common-pinctrl.dtsi"
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 zephyr,shell-uart = &uart0;
16 zephyr,uart-mcumgr = &uart0;
20 compatible = "gpio-leds";
24 label = "Red LED";
29 label = "Green LED";
34 label = "Blue LED";
[all …]
/Zephyr-latest/boards/arduino/nano_33_ble/
Darduino_nano_33_ble-common.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 zephyr,shell-uart = &uart0;
11 zephyr,uart-mcumgr = &uart0;
12 zephyr,bt-mon-uart = &uart0;
13 zephyr,bt-c2h-uart = &uart0;
16 zephyr,code-partition = &code_partition;
21 compatible = "gpio-leds";
24 label = "Red LED";
28 label = "Green LED";
32 label = "Blue LED";
[all …]
/Zephyr-latest/boards/nordic/nrf52840dongle/
Dnrf52840dongle_nrf52840.dts2 * Copyright (c) 2018-2023 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
8 /dts-v1/;
10 #include "nrf52840dongle_nrf52840-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 compatible = "nordic,nrf52840-dongle-nrf52840";
20 zephyr,code-partition = &slot0_partition;
25 compatible = "gpio-leds";
28 label = "Green LED 0";
32 label = "Red LED 1";
[all …]
/Zephyr-latest/boards/actinius/icarus_som_dk/
Dactinius_icarus_som_dk_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
6 #include "actinius_icarus_som_dk_common-pinctrl.dtsi"
7 #include <dt-bindings/led/led.h>
8 #include <zephyr/dt-bindings/input/input-event-codes.h>
16 zephyr,shell-uart = &uart0;
17 zephyr,uart-mcumgr = &uart0;
21 compatible = "gpio-leds";
25 label = "Blue LED";
30 compatible = "pwm-leds";
34 label = "Blue PWM LED";
[all …]
/Zephyr-latest/boards/espressif/esp_wrover_kit/
Desp_wrover_kit_procpu.dts4 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
9 #include "esp_wrover_kit-pinctrl.dtsi"
13 model = "Espressif ESP32-Wrover-Kit PROCPU";
20 pwm-led0 = &pwm_led_red;
21 pwm-led1 = &pwm_led_green;
22 pwm-led2 = &pwm_led_blue;
23 red-pwm-led = &pwm_led_red;
24 green-pwm-led = &pwm_led_green;
25 blue-pwm-led = &pwm_led_blue;
[all …]
/Zephyr-latest/boards/nxp/twr_ke18f/
Dtwr_ke18f.dts2 * Copyright (c) 2019-2021 Vestas Wind Systems A/S
4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <zephyr/dt-bindings/clock/kinetis_scg.h>
11 #include <zephyr/dt-bindings/pwm/pwm.h>
12 #include "twr_ke18f-pinctrl.dtsi"
13 #include <zephyr/dt-bindings/input/input-event-codes.h>
27 pwm-led0 = &orange_pwm_led;
28 pwm-led1 = &yellow_pwm_led;
29 pwm-led2 = &green_pwm_led;
[all …]
/Zephyr-latest/boards/mxchip/az3166_iotdevkit/
Daz3166_iotdevkit.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <st/f4/stm32f412r(e-g)tx-pinctrl.dtsi>
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
18 pwm-led0 = &blue_pwm_led;
21 red-led = &red_led;
22 green-led = &green_led;
23 blue-led = &blue_led;
25 red-pwm-led = &red_pwm_led;
26 green-pwm-led = &green_pwm_led;
[all …]
/Zephyr-latest/samples/basic/blinky_pwm/boards/
Dwio_terminal.overlay3 * SPDX-License-Identifier: Apache-2.0
8 pwm-led0 = &pwm_led0;
12 compatible = "pwm-leds";
15 label = "Blue PWM LED";
22 compatible = "atmel,sam0-tcc-pwm";
24 #pwm-cells = <2>;
26 pinctrl-0 = <&pwm_default>;
27 pinctrl-names = "default";
/Zephyr-latest/boards/nxp/frdm_ke17z512/
Dfrdm_ke17z512.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "frdm_ke17z512-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
12 #include <zephyr/dt-bindings/pwm/pwm.h>
21 zephyr,code-partition = &slot0_partition;
22 zephyr,uart-mcumgr = &lpuart2;
24 zephyr,shell-uart = &lpuart2;
34 pwm-led0 = &red_pwm_led;
35 pwm-led1 = &green_pwm_led;
[all …]
/Zephyr-latest/boards/telink/tlsr9518adk80d/
Dtlsr9518adk80d.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
11 #include "tlsr9518adk80d-pinctrl.dtsi"
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
24 pwm-led0 = &pwm_led_blue;
25 pwm-0 = &pwm0;
29 compatible = "gpio-leds";
33 label = "LED Blue";
38 label = "LED Green";
43 label = "LED White";
[all …]
/Zephyr-latest/boards/st/nucleo_f207zg/
Dnucleo_f207zg.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <st/f2/stm32f207z(c-e-f-g)tx-pinctrl.dtsi>
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 model = "STMicroelectronics STM32F207ZG-NUCLEO board";
15 compatible = "st,stm32f207zg-nucleo";
19 zephyr,shell-uart = &usart3;
25 compatible = "gpio-leds";
41 compatible = "pwm-leds";
45 label = "Green PWM LED";
[all …]
/Zephyr-latest/boards/nxp/frdm_ke17z/
Dfrdm_ke17z.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "frdm_ke17z-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
12 #include <zephyr/dt-bindings/pwm/pwm.h>
16 compatible = "nxp,frdm-ke17z", "nxp,ke17z", "nxp,mke17z7";
25 pwm-led0 = &red_pwm_led;
26 pwm-led1 = &green_pwm_led;
27 pwm-led2 = &blue_pwm_led;
28 mcuboot-button0 = &user_button_0;
[all …]
/Zephyr-latest/boards/sifive/hifive1/
Dhifive1.dts2 /* SPDX-License-Identifier: Apache-2.0 */
4 /dts-v1/;
6 #include <sifive/riscv32-fe310.dtsi>
7 #include <zephyr/dt-bindings/i2c/i2c.h>
8 #include "hifive1-pinctrl.dtsi"
18 pwm-led0 = &pwmled0;
19 pwm-led1 = &pwmled1;
20 pwm-led2 = &pwmled2;
26 zephyr,shell-uart = &uart0;
32 compatible = "gpio-leds";
[all …]
/Zephyr-latest/samples/basic/rgb_led/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
8 * @file Sample app to demonstrate PWM-based RGB LED control
14 #include <zephyr/drivers/pwm.h>
30 printk("PWM-based RGB LED control\n"); in main()
35 printk("Error: one or more PWM devices not ready\n"); in main()
66 "blue write failed\n", in main()
/Zephyr-latest/boards/u-blox/ubx_evkninab3/
Dubx_evkninab3_nrf52840.dts2 * Copyright (c) 2021 u-blox AG
4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "ubx_evkninab3_nrf52840-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 model = "u-blox EVK NINA-B3 nRF52840";
19 zephyr,shell-uart = &uart0;
20 zephyr,uart-mcumgr = &uart0;
21 zephyr,bt-mon-uart = &uart0;
22 zephyr,bt-c2h-uart = &uart0;
[all …]

123456