samples: led: consolidate LED samples under same directory

With over a dozen LED samples, grouping them in a common drivers/led/
folder helps keep things tidy and lays the groundwork for further
improvements in the way samples are showing up in the docs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2024-08-31 14:09:42 +02:00 committed by Carles Cufí
commit 55d9d1c6ba
119 changed files with 27 additions and 13 deletions

View file

@ -1739,7 +1739,7 @@ Release Notes:
- drivers/led/
- include/zephyr/drivers/led/
- include/zephyr/drivers/led.h
- samples/drivers/led_*/
- samples/drivers/led/
- tests/drivers/led/
- doc/hardware/peripherals/led.rst
- tests/drivers/build_all/led/

View file

@ -125,7 +125,7 @@ an external programmer. The programmer is attached to the SWD header.
Build the Zephyr kernel and the :zephyr:code-sample:`led-strip` sample application.
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_apa102
:zephyr-app: samples/drivers/led/apa102
:board: blueclover_plt_demo_v2/nrf52832
:goals: build
:compact:
@ -133,7 +133,7 @@ Build the Zephyr kernel and the :zephyr:code-sample:`led-strip` sample applicati
Flash the image.
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_apa102
:zephyr-app: samples/drivers/led/apa102
:board: blueclover_plt_demo_v2/nrf52832
:goals: flash
:compact:

View file

@ -39,7 +39,7 @@ LED Strip Example
Set ``--shield adafruit_neopixel_grid_bff`` when you invoke ``west build``. For example:
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_strip
:zephyr-app: samples/drivers/led/led_strip
:board: adafruit_qt_py_rp2040
:shield: adafruit_neopixel_grid_bff
:goals: build

View file

@ -31,7 +31,7 @@ Set ``--shield adafruit_pca9685`` when you invoke ``west build``.
For example:
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_pwm
:zephyr-app: samples/drivers/led/pwm
:board: nrf52840dk/nrf52840
:shield: adafruit_pca9685
:goals: build

View file

@ -239,7 +239,7 @@ The board contains an addressable RGB LED (`XL-5050RGBC-WS2812B`_), driven by GP
Here is an example of how to test it using the :zephyr:code-sample:`led-strip` application.
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_strip
:zephyr-app: samples/drivers/led/led_strip
:board: yd_esp32/esp32/procpu
:goals: flash

View file

@ -221,8 +221,20 @@ REDIRECTS = [
('samples/drivers/adc/README', 'samples/drivers/adc/adc_dt/README'),
('samples/drivers/kscan_touch', 'samples/subsys/input/input'),
('samples/drivers/led_apa102/README', 'samples/drivers/led_strip/README'),
('samples/drivers/led_is31fl3194/README', 'samples/drivers/led/is31fl3194/README'),
('samples/drivers/led_is31fl3216a/README', 'samples/drivers/led/is31fl3216a/README'),
('samples/drivers/led_is31fl3733/README', 'samples/drivers/led/is31fl3733/README'),
('samples/drivers/led_lp3943/README', 'samples/drivers/led/lp3943/README'),
('samples/drivers/led_lp50xx/README', 'samples/drivers/led/lp50xx/README'),
('samples/drivers/led_lp5562/README', 'samples/drivers/led/lp5562/README'),
('samples/drivers/led_lp5569/README', 'samples/drivers/led/lp5569/README'),
('samples/drivers/led_lpd8806/README', 'samples/drivers/led_strip/README'),
('samples/drivers/led_pca9633/README', 'samples/drivers/led/pca9633/README'),
('samples/drivers/led_pwm/README', 'samples/drivers/led/pwm/README'),
('samples/drivers/led_strip/README', 'samples/drivers/led/led_strip/README'),
('samples/drivers/led_sx1509b_intensity/README', 'samples/drivers/led/sx1509b_intensity/README'),
('samples/drivers/led_ws2812/README', 'samples/drivers/led_strip/README'),
('samples/drivers/led_xec/README', 'samples/drivers/led/xec/README'),
('samples/net/cloud/google_iot_mqtt/README', 'samples/net/net'),
('samples/sensor/wsen_hids/README', 'samples/sensor/sensor'),
('samples/sensor/wsen_itds/README', 'samples/sensor/sensor'),

View file

@ -164,6 +164,8 @@ Drivers and Sensors
* lp5569: added ``enable-gpios`` property to describe the EN/PWM GPIO of the lp5569.
* LED code samples have been consolidated under the :zephyr_file:`samples/drivers/led` directory.
* LED Strip
* LoRa

View file

@ -2,7 +2,7 @@
:name: LED strip
:relevant-api: led_strip_interface
Control an LED strip example.
Control an LED strip.
Overview
********
@ -68,7 +68,7 @@ modified by changing the :kconfig:option:`CONFIG_SAMPLE_LED_UPDATE_DELAY`.
Then build and flash the application:
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_strip
:zephyr-app: samples/drivers/led/led_strip
:board: <board>
:goals: flash
:compact:

View file

@ -25,7 +25,7 @@ Build the application for the :ref:`96b_neonkey` board, which has an
LP3943 driver included.
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_lp3943
:zephyr-app: samples/drivers/led/lp3943
:board: 96b_neonkey
:goals: build
:compact:

View file

@ -34,7 +34,7 @@ Build the application for the :ref:`nrf52840dk_nrf52840` board, and connect
a LP5562 LED driver on the bus I2C0 at the address 0x30.
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_lp5562
:zephyr-app: samples/drivers/led/lp5562
:board: nrf52840dk/nrf52840
:goals: build
:compact:

View file

@ -17,7 +17,7 @@ Build the application for the :ref:`nrf52840dk_nrf52840` board, and connect
a LP5569 LED controller on the bus I2C0 at the address 0x32.
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_lp5569
:zephyr-app: samples/drivers/led/lp5569
:board: nrf52840dk/nrf52840
:goals: build
:compact:

View file

@ -24,7 +24,7 @@ Build the application for the :ref:`nucleo_f334r8_board` board, and connect
a PCA9633 LED driver on the bus I2C Arduino.
.. zephyr-app-commands::
:zephyr-app: samples/drivers/led_pca9633
:zephyr-app: samples/drivers/led/pca9633
:board: nucleo_f334r8_board
:goals: build
:compact:

Some files were not shown because too many files have changed in this diff Show more