c7b5b3c419
In order to bring consistency in-tree, migrate all samples to the use the new prefix <zephyr/...>. Note that the conversion has been scripted: ```python from pathlib import Path import re EXTENSIONS = ("c", "h", "cpp", "rst") for p in Path(".").glob("samples/**/*"): if not p.is_file() or p.suffix and p.suffix[1:] not in EXTENSIONS: continue content = "" with open(p) as f: for line in f: m = re.match(r"^(.*)#include <(.*)>(.*)$", line) if (m and not m.group(2).startswith("zephyr/") and (Path(".") / "include" / "zephyr" / m.group(2)).exists()): content += ( m.group(1) + "#include <zephyr/" + m.group(2) +">" + m.group(3) + "\n" ) else: content += line with open(p, "w") as f: f.write(content) ``` Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
README.rst | ||
prj.conf | ||
sample.yaml |
README.rst
.. _nrf_led_matrix_sample: nRF LED matrix sample ##################### Overview ******** This is a simple application intended to present the nRF LED matrix display driver in action and to serve as a test ensuring that this driver is buildable for both the :ref:`bbc_microbit_v2` and :ref:`bbc_microbit` boards. Requirements ************ The sample has been tested on the bbc_microbit_v2 and bbc_microbit boards, but it could be ported to any board with an nRF SoC and the proper number of GPIOs available for driving a LED matrix. To do it, one needs to add an overlay file with the corresponding ``"nordic,nrf-led-matrix"`` compatible node. Building and Running ******************** The code can be found in :zephyr_file:`samples/boards/nrf/nrf_led_matrix`. To build and flash the application: .. zephyr-app-commands:: :zephyr-app: samples/boards/nrf/nrf_led_matrix :board: bbc_microbit_v2 :goals: build flash :compact: