Lines Matching +full:sample +full:- +full:period
1 .. zephyr:code-sample:: rgb-led
3 :relevant-api: pwm_interface
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
14 indicated in Devicetree. Such period should be fast enough to be above the
16 being steady). The sample causes each LED component to step from dark to max
18 range of color changes from the RGB LED, and the sample repeats forever.
26 <dt-guide>` aliases, usually in the :ref:`BOARD.dts file
27 <devicetree-in-out-files>`:
29 - ``red-pwm-led``
30 - ``green-pwm-led``
31 - ``blue-pwm-led``
33 You will see at least one of these errors if you try to build this sample for
36 .. code-block:: none
38 Unsupported board: red-pwm-led devicetree alias is not defined
39 Unsupported board: green-pwm-led devicetree alias is not defined
40 Unsupported board: blue-pwm-led devicetree alias is not defined
43 :file:`BOARD.dts` file which supports this sample.
58 .. zephyr-app-commands::
59 :zephyr-app: samples/basic/rgb_led